Given a binary tree struct TreeLinkNode {
TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next
pointe...
分类:
其他好文 时间:
2014-07-22 23:16:35
阅读次数:
373
DescriptionOn a grid map there are n little men
and n houses. In each unit time, every little man can move one unit step, either
horizontally, or vert...
分类:
其他好文 时间:
2014-07-22 23:15:37
阅读次数:
331
Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-07-22 23:12:13
阅读次数:
426
This is a two player game. Initially there
areninteger numbers in an array and playersAandBget chance to take them
alternatively. Each player can take...
分类:
其他好文 时间:
2014-04-30 20:34:38
阅读次数:
519
1.for a two dimension vector, we must assign at
least the first dimension of the vector2.each dimension of an inner vector can
be different3.if you do...
分类:
其他好文 时间:
2014-04-30 18:47:20
阅读次数:
549
题目: You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a sin...
分类:
其他好文 时间:
2014-04-30 18:44:23
阅读次数:
428
Description There are N cities in a country, and
there is one and only one simple path between each pair of cities. A merchant
has chosen some paths a...
分类:
其他好文 时间:
2014-04-30 17:09:30
阅读次数:
570
这里送上一道微软的笔试题,具体题目如下:Time Limit: 10000msCase
Time Limit: 1000msMemory Limit: 256MBDescriptionConsider a string set that each
of them consists of {0,...
分类:
其他好文 时间:
2014-04-29 21:23:55
阅读次数:
662
You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a single ...
分类:
其他好文 时间:
2014-04-29 10:17:46
阅读次数:
406
Jump GameGiven an array of non-negative
integers, you are initially positioned at the first index of the array.Each
element in the array represents yo...
分类:
其他好文 时间:
2014-04-28 11:30:27
阅读次数:
551