Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.ExampleGiv...
分类:
其他好文 时间:
2014-12-25 01:25:31
阅读次数:
368
Given n distinct positive integers, integer k (k i) d[i][j][v] += d[i][j-1][v];22 if (v>=A[j-1]) d[i][j][v] += d[i-1][j-1][v-A[j-1...
分类:
其他好文 时间:
2014-12-24 13:22:01
阅读次数:
206
Given an integer array, adjust each integers so that the difference of every adjcent integers are not greater than a given number target.If the array ...
分类:
其他好文 时间:
2014-12-24 06:25:41
阅读次数:
170
Sort Colors II 原题链接: http://lintcode.com/zh-cn/problem/sort-colors-ii/#Given an array ofnobjects with k different colors (numbered from 1 to k), sort ...
分类:
其他好文 时间:
2014-12-22 00:47:02
阅读次数:
263
Majority Number II 原题链接: http://lintcode.com/en/problem/majority-number-ii/#Given an array of integers, the majority number is the number that occurs ...
分类:
其他好文 时间:
2014-12-20 20:46:22
阅读次数:
301
Interleaving Positive and Negative Numbers 原题链接 : http://lintcode.com/zh-cn/problem/interleaving-positive-and-negative-numbers/Given an array with pos...
分类:
其他好文 时间:
2014-12-20 18:08:37
阅读次数:
404
Implement Queue by Stacks 原题链接 : http://lintcode.com/zh-cn/problem/implement-queue-by-stacks/#As the title described, you should only use two stacks t...
分类:
其他好文 时间:
2014-12-20 16:46:10
阅读次数:
270
Majority Number 原题链接:http://lintcode.com/en/problem/majority-number/#Given an array of integers, the majority number is the number that occurs more th...
分类:
其他好文 时间:
2014-12-20 08:13:29
阅读次数:
306
Fast Power 原题链接:http://lintcode.com/en/problem/fast-power/#Calculate the an% b where a, b and n are all 32bit integers.ExampleFor 231 % 3 = 2For 10010...
分类:
其他好文 时间:
2014-12-19 23:22:09
阅读次数:
241
Minimum Subarray原题链接: http://lintcode.com/zh-cn/problem/minimum-subarray/#Given an array of integers, find the subarray with smallest sum.Return the s...
分类:
其他好文 时间:
2014-12-19 19:05:04
阅读次数:
250