You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
递推公式T(n) = T(n-1) + T(n-2);
...
分类:
其他好文 时间:
2015-01-12 17:39:19
阅读次数:
227
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
其他好文 时间:
2015-01-12 16:41:29
阅读次数:
144
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2015-01-12 16:31:05
阅读次数:
180
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-01-08 14:42:31
阅读次数:
160
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2015-01-08 13:14:25
阅读次数:
119
看老师的word文档开始学习。复制了一段代码,在layout中新建了一个Android XML file,发现有提示错误。 代码如下: 错误的提示是这样的:Element type "LinearLayout" must be followed by either attribut...
分类:
其他好文 时间:
2015-01-07 00:34:13
阅读次数:
318
One of the challenges of explaining project management to people who are unfamiliar with the approach, is that descriptions are often either so high-l...
分类:
其他好文 时间:
2015-01-05 20:08:57
阅读次数:
191
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bott...
分类:
其他好文 时间:
2015-01-05 08:18:16
阅读次数:
214
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
其他好文 时间:
2015-01-05 00:19:55
阅读次数:
231
Binary Tree Upside Down
Total Accepted: 813
Total Submissions: 2515
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent ...
分类:
其他好文 时间:
2015-01-03 15:58:52
阅读次数:
134