码迷,mamicode.com
首页 >  
搜索关键字:consecutive numbers    ( 8082个结果
Map, filter and reduce
To add up all the numbers in a list, you can use a loop like this: Total is initialized to 0. Each time through the loop, x gets one element...
分类:其他好文   时间:2014-07-16 19:29:14    阅读次数:234
【LeetCode】Sum Root to Leaf Numbers
题目Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which r...
分类:其他好文   时间:2014-07-15 23:21:33    阅读次数:218
[leetcode]Two Sum
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:其他好文   时间:2014-07-15 08:45:17    阅读次数:236
Ugly Numbers
为何这样做Wrong Answer...
分类:其他好文   时间:2014-07-14 11:21:03    阅读次数:187
[leetcode]Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes...
分类:其他好文   时间:2014-07-14 10:43:07    阅读次数:222
[leetcode]Combination SumII
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sum...
分类:其他好文   时间:2014-07-14 10:42:22    阅读次数:192
2014 Super Training #8 B Consecutive Blocks --排序+贪心
当时不知道怎么下手,后来一看原来就是排个序然后乱搞就行了。解法不想写了,可见:http://blog.csdn.net/u013368721/article/details/28071241其实就是滑动窗口的思想。代码:#include #include #include #include #inc...
分类:其他好文   时间:2014-07-13 19:31:18    阅读次数:212
poj1338 Ugly Numbers(丑数模拟)
poj1338 Ugly Numbers(丑数模拟)...
分类:其他好文   时间:2014-07-13 18:42:24    阅读次数:232
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-07-13 18:20:52    阅读次数:202
G - Specialized Four-Digit Numbers(1.5.2)
Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description Find and list all four-digit numbers in decimal notation that have the property ...
分类:其他好文   时间:2014-07-13 18:17:24    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!