Two Sum:
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...
分类:
其他好文 时间:
2015-05-27 13:57:02
阅读次数:
161
题目大意:有一个三角形,刚开始是1个up,0个down,1年后,这个三角形变成了3个up,1个down的
之后的每一年,每个三角形都会变成四个,其中三个是相同方向的,1个是相反方向的,问n年后,共有多少个三角形是up的解题思路:水题啊,看错了题意,以为循环变化指的是其中一年只变up的,然后第二年是所有的三角形都变的那种循环,结果循环是第一年只变up,之后每一年都是所有三角形都在变。。。变化矩阵,就...
分类:
其他好文 时间:
2015-05-27 12:28:22
阅读次数:
213
1004. I Conduit!
Constraints
Time Limit: 3 secs, Memory Limit: 32 MB
Description
Irv Kenneth Diggit works for a company that excavates trenches, digs holes and generally tears up people'...
分类:
其他好文 时间:
2015-05-27 10:18:18
阅读次数:
181
题目:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty spac...
分类:
其他好文 时间:
2015-05-27 09:54:56
阅读次数:
121
dfs 参考I II, 切不要K sumFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combi...
分类:
其他好文 时间:
2015-05-27 06:20:06
阅读次数:
134
Combination Sum IIIFind all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combin...
分类:
编程语言 时间:
2015-05-27 00:44:49
阅读次数:
234
unique_ptr 智能指针(C++11) #include#include //内存using namespace std;void main(){ for ( size_t i = 0; i up(new double ); } cin.get();} 使用智能指针,系统会检测有多少个指针指向...
分类:
编程语言 时间:
2015-05-26 20:50:25
阅读次数:
194
1、Ctrl + L 删除当前行2、Ctrl + G 定位行数3、Ctrl + T 与上一行交换位置4、Ctrl + Shift + Up 将当前行上移一行5、Ctrl + Shift + Down 将当前行下移一行6、Ctrl + Shift + Enter 当前行上面插入一行7、Ctl + Al...
分类:
其他好文 时间:
2015-05-26 18:08:38
阅读次数:
117
第一个问题https://www.google.com.hk/search?q=internal+inconsistency+looking+up+disk+image+%27vm+disk+2%27&oq=inter&aqs=chrome.0.69i59j69i57j0l4.5075j0j7&so...
分类:
编程语言 时间:
2015-05-26 17:47:31
阅读次数:
194
一天奏辣么过去了,周二拖家带口的领着周三周四周五一起奔过来了。在这好基友腐女搞基被玩坏的日子里,瞬间觉得自己是下里巴人了,为了响应党的高尚理念,我决定Good good study,day day up。早起晨读,强词造句...
分类:
其他好文 时间:
2015-05-26 16:43:49
阅读次数:
265