Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one a...
分类:
移动开发 时间:
2014-08-07 18:59:10
阅读次数:
293
Exponential smoothingFrom Wikipedia, the free encyclopedia Exponential smoothingis a technique that can be applied totime seriesdata, either to produ....
分类:
其他好文 时间:
2014-08-07 12:14:00
阅读次数:
249
Description
The puzzle game of Sudoku is played on a board of N2 × N2 cells. The cells are grouped in N × N squares of N × N cells each. Each cell is either empty or contains a number between
1 a...
分类:
其他好文 时间:
2014-08-02 23:26:34
阅读次数:
344
Shaders are simple programs that describe the traits of either a vertex or
a pixel.
Vertex shaders describe the traits (position, texture
coordinates, colors, etc.) of a vertex, while pixel shade...
分类:
其他好文 时间:
2014-08-02 15:30:43
阅读次数:
377
题目: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....
分类:
编程语言 时间:
2014-08-02 12:19:43
阅读次数:
389
题目: 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 a....
分类:
编程语言 时间:
2014-08-02 12:17:23
阅读次数:
279
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
分类:
其他好文 时间:
2014-08-01 12:50:41
阅读次数:
285
Climbing StairsYou 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 way...
分类:
其他好文 时间:
2014-08-01 04:37:21
阅读次数:
244
Red and BlackTime Limit:2 Seconds Memory Limit:65536 KBThere is a rectangular room, covered with square tiles. Each tile is colored either red or blac...
分类:
其他好文 时间:
2014-07-31 12:18:26
阅读次数:
213
问题描述:
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?
解题思路:
这是一个典型的斐波那契数列,对于...
分类:
其他好文 时间:
2014-07-31 00:02:55
阅读次数:
243