摘要:
No.1Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.e.g.[−2,1,−3,4,−1,2,1,−5,4... 阅读全文
posted @ 2015-04-26 08:26
Joyce-Lee
阅读(206)
评论(0)
推荐(0)
摘要:
文章 String S, 要查找的字符串 String W 重点:Get int T[] from W 用变量 c 来表示当前比较到的 W 中前面的字符,i 表示当前要处理的 T 中的 index,int[] T = new int[W.length];T[0] = -1; T[1] = 0;c=0 阅读全文
posted @ 2015-04-26 06:15
Joyce-Lee
阅读(289)
评论(0)
推荐(0)
摘要:
最近被各种 encode 和 decode 算法虐得很晕,总结一下,但愿有通解😫No.1Compress a string to remove duplicates when a character occurs +2 times continuously.e.g.input : "12 abbb... 阅读全文
posted @ 2015-04-26 06:08
Joyce-Lee
阅读(446)
评论(0)
推荐(0)

浙公网安备 33010602011771号