Easier Done Than Said?
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8339 Accepted Submission(s): 4093
Problem Description
Pas...
分类:
其他好文 时间:
2014-12-10 22:56:50
阅读次数:
178
如图,在一个三角形二维数组中有一系列数,求出从顶层到底层最小和的路径。...
分类:
其他好文 时间:
2014-12-10 22:52:20
阅读次数:
234
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?...
分类:
其他好文 时间:
2014-12-10 21:16:44
阅读次数:
201
现在的三角形Triangle还比较简单,只有三个点(private)nodei_,nodej_,nodem_。功能也仅仅是初始化三个点init(),打印三角形三个点坐标print()。首先是Node类,定义在“Node.h”中,如下:class Node{private: double x_;...
分类:
其他好文 时间:
2014-12-09 22:52:11
阅读次数:
154
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41827325
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]...
分类:
其他好文 时间:
2014-12-09 21:39:15
阅读次数:
216
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
#include
#include
int **g...
分类:
其他好文 时间:
2014-12-09 21:36:25
阅读次数:
167
/* Unusual Triangle */#include #include #define LEN 256int main(void){ long n; long i, j; int upperRecord[LEN]; int curRecord[LEN]; cha...
分类:
其他好文 时间:
2014-12-07 00:03:36
阅读次数:
310
Triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, give...
分类:
其他好文 时间:
2014-12-06 06:33:39
阅读次数:
186
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-12-05 22:50:19
阅读次数:
151
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:
其他好文 时间:
2014-12-05 19:14:53
阅读次数:
131