【题目链接】 poj.org/problem?id=3693 【题目大意】 求一个串重复次数最多的连续重复子串并输出,要求字典序最小。 【题解】 考虑错位匹配,设重复部分长度为l,记s[i]和s[i+l]前缀匹配得到的最长长度为r, 枚举所有的l和i,得到r,那么答案就是r/l+1的最大值。 计算任 ...
分类:
编程语言 时间:
2016-11-16 02:29:14
阅读次数:
242
Kafka深度解析 原创文章,转载请务必将下面这段话置于文章开头处(保留超链接)。本文转发自Jason’s Blog,原文链接 http://www.jasongj.com/2015/01/02/Kafka深度解析 背景介绍 Kafka简介 Kafka是一种分布式的,基于发布/订阅的消息系统。主要设 ...
分类:
其他好文 时间:
2016-11-14 01:22:56
阅读次数:
267
语音输入是我们操作全息对象的另一种交互方式,语音指令在实际操作过程中是非常自然和容易的,设计语音指令需要考虑以下几点: 自然的 容易记住的 上下文一致 与同一上下文中的其他选项有足够的区别 在Holograms 101的教程里,已经使用关键字识别构建了两个简单的语音指令,这节教程将更深入的学习语音输 ...
分类:
其他好文 时间:
2016-11-13 22:48:55
阅读次数:
777
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2016-11-13 07:49:37
阅读次数:
170
这是小弟第一次写的小游戏,基于jQ写的,没用面向对象思维去写,可能写得不好,请见谅,亲测是能玩的!! 尾部我附上材料图片提供大家下载 图片说明,fan.png/chugui.png/chuang.png/shuzhuo.png/yigui.png/yizi.png/shafa.png ...
分类:
其他好文 时间:
2016-11-11 01:33:39
阅读次数:
278
不说话,直接上代码 不需要图片,css解决 <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum- ...
分类:
其他好文 时间:
2016-11-07 12:26:37
阅读次数:
218
Java 通过JDBC查询数据库表结构(字段名称,类型,长度等) 发布者:唛唛家的豆子 时间:2012-11-20 17:54:02 Java 通过JDBC查询数据库表结构(字段名称,类型,长度等) 在JDBCPreparedStatement.executeQuery().getMetaData( ...
分类:
数据库 时间:
2016-11-07 11:53:56
阅读次数:
275
Maximal Subarray Sum : O(n) scan-and-update dynamic programming,https://en.wikipedia.org/wiki/Maximum_subarray_problem, https://leetcode.com/problems/ ...
分类:
其他好文 时间:
2016-11-07 07:49:08
阅读次数:
203
https://leetcode.com/problems/create-maximum-number/ 这道题目太难了,花了我很多时间。最后还是参考了别人的方法。还少加了个greater方法。很难。 ...
分类:
其他好文 时间:
2016-11-07 01:57:40
阅读次数:
153
最近做的题记录下。 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num ...
分类:
其他好文 时间:
2016-11-06 13:54:12
阅读次数:
283