[Definitions]
Here is the recursive definition of a binary tree:
A binary tree is either the empty set or a triple T = (x,L,R), where x is a node and L and R are disjoint binary trees, neither of wh...
分类:
其他好文 时间:
2014-08-18 01:34:43
阅读次数:
216
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 bottom-right corner of the grid (marked 'Finish' in the diag...
分类:
其他好文 时间:
2014-08-15 09:32:37
阅读次数:
200
Description
In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Players take turns removing a card from either end...
分类:
其他好文 时间:
2014-08-13 01:18:05
阅读次数:
209
Overflow
Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be rep...
分类:
其他好文 时间:
2014-08-09 21:35:29
阅读次数:
321
Problem Description
PM Room defines a sequence A = {A1, A2,..., AN}, each of which is either 0 or 1. In order
to beat him, programmer Moor has to construct another sequence B = {B1, B2,... , BN} of...
分类:
其他好文 时间:
2014-08-09 21:34:09
阅读次数:
365
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...
分类:
其他好文 时间:
2014-08-09 00:02:06
阅读次数:
201
Define routes:Either using Spring xml or Java DSL.Spring xml: //to load the Java DSL routes defined in MyRouteBuilder class //to load the routes...
分类:
其他好文 时间:
2014-08-08 23:50:06
阅读次数:
334
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...
分类:
移动开发 时间:
2014-08-08 16:13:06
阅读次数:
281
Problem Description
PM Room defines a sequence A = {A1, A2,..., AN}, each of which is either 0 or 1. In order to beat him, programmer Moor has to construct another sequence B = {B1, B2,... , BN}
of...
分类:
其他好文 时间:
2014-08-07 23:18:54
阅读次数:
308
Room and MoorProblem DescriptionPM Room defines a sequence A = {A1, A2,..., AN}, each of which is either 0 or 1. In order to beat him, programmer Moor...
分类:
其他好文 时间:
2014-08-07 22:53:15
阅读次数:
293