题目
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Recur...
分类:
其他好文 时间:
2014-06-20 10:22:00
阅读次数:
221
1. 官方 模拟器
Tutorialshttps://01.org/web-simulator/2. 最新版本发布于 2013.05I am honored to
introduce the Web Simulator for its public release on 01.org. The We...
分类:
Web程序 时间:
2014-06-07 11:21:09
阅读次数:
296
18.2.6Performing a Quick TuneTo tune a single
SQL statement, theQUICK_TUNEprocedure accepts as its input atask_nameand a SQL
statement. The procedure ...
分类:
其他好文 时间:
2014-06-06 07:37:10
阅读次数:
305
Given a linked list, reverse the nodes of a
linked list k at a time and return its modified list. If the number of nodes is
not a multiple of k then l...
分类:
其他好文 时间:
2014-06-05 22:13:19
阅读次数:
391
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-06-05 14:10:38
阅读次数:
304
Given a linked list, swap every two adjacent
nodes and return its head.For example,Given1->2->3->4, you should
return the list as2->1->4->3.Your algor...
分类:
其他好文 时间:
2014-06-05 13:41:44
阅读次数:
231
Robot MotionDescriptionA robot has been
programmed to follow the instructions in its path. Instructions for the next
direction the robot is to move ar...
分类:
其他好文 时间:
2014-06-04 17:56:00
阅读次数:
247
【题目】
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the following is not:
1
/ 2 2
\ 3 3
No...
分类:
其他好文 时间:
2014-06-02 10:56:14
阅读次数:
237
【题目】
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
confused what "{1,#,2,3}" ...
分类:
其他好文 时间:
2014-06-02 10:38:17
阅读次数:
246
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses theBack button or your activity signals its own destruction
by calling finish(...
分类:
其他好文 时间:
2014-06-01 18:18:52
阅读次数:
550