Reference: http://paulgraham.com/know.html受启发段落Realizing it does more than make you feel a little better about forgetting, though. There are specific ...
分类:
其他好文 时间:
2015-01-06 17:39:02
阅读次数:
155
1 Given an array of integers, find two numbers such that they add up to a specific target number. 2 3 The function twoSum should return indices of t.....
分类:
其他好文 时间:
2015-01-06 00:42:58
阅读次数:
192
Given 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 two nu...
分类:
其他好文 时间:
2015-01-04 22:49:26
阅读次数:
229
Randomized quicksort(随机化快速排序)running time is independent of input ordering.no assumption about the input distribution.(无需对输入序列分布做任何假设)no specific inpu...
分类:
编程语言 时间:
2015-01-04 22:48:05
阅读次数:
443
Given 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 two numbers such that they add up to the target, where...
分类:
其他好文 时间:
2015-01-04 21:29:46
阅读次数:
162
Given 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 two nu...
分类:
其他好文 时间:
2015-01-04 15:10:14
阅读次数:
132
The question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices ...
分类:
其他好文 时间:
2014-12-30 07:01:44
阅读次数:
170
The Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:
其他好文 时间:
2014-12-30 07:00:19
阅读次数:
201
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-12-28 11:38:19
阅读次数:
134
4 来自Google的奇技 Google-Specific Magic
Google用了很多自己的实现技巧/工具使 C++代码更加健壮, 我们使用C++的方式可能和你在其他地方见到的有所不同;
[Removed]
4.1 智能指针
Tip 如果确实需要使用智能指针的话, scoped_ptr完全可以胜任; 你应该只在非常特定的情况下使用 std::tr1::shared...
分类:
其他好文 时间:
2014-12-28 00:33:50
阅读次数:
218