题目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
HHyper Prefix SetsPrefix goodness of a set string is length of longest common prefix*number of strings in the set. For example the prefix goodness of ...
分类:
其他好文 时间:
2014-07-15 08:51:08
阅读次数:
261
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
3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three int...
分类:
其他好文 时间:
2014-07-14 15:23:22
阅读次数:
171
Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence
...
分类:
其他好文 时间:
2014-07-14 14:03:02
阅读次数:
206
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
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
编程世界的两个基本元素:数据和代码。数据天生文静,欲在保持;代码天生活泼,欲在改变。面向对象的思想首次把数据和代码结合成统一体,并以一个简单的对象概念呈现给编程者。JavaScript中简单数据只有undefined、null、boolean、number和string五种,复杂数据只有object...
分类:
编程语言 时间:
2014-07-14 10:23:02
阅读次数:
261
poj1338 Ugly Numbers(丑数模拟)...
分类:
其他好文 时间:
2014-07-13 18:42:24
阅读次数:
232