题目
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
方法
根据树的中序遍历和后序遍历,来恢复树,使用递归的思想。
Tr...
分类:
其他好文 时间:
2014-06-07 14:50:37
阅读次数:
231
报错现象:解决方法:1,日志网址上面,随便输入一个字符,比如:a
,下一步2,手动配置日志类型:a) 在“Type of weblog that you are using”中选择“Custom(Metaweblog
API)”。 b) “Remote posting URL for your we...
分类:
其他好文 时间:
2014-06-07 08:52:05
阅读次数:
254
二维码:二维码(Two-dimensional
code),又称二维条码,它是用特定的几何图形按一定规律在平面(二维方向)上分布的黑白相间的图形,是所有信息数据的一把钥匙。在现代商业活动中,可实现的应用十分广泛,如:产品防伪/溯源、广告推送、网站链接、数据下载、商品交易、定位/导航、电子凭证、车辆管...
分类:
其他好文 时间:
2014-06-07 08:05:10
阅读次数:
269
WebDriver IntroductionA different way of
automating the browser.. Create a browser-specific driver to control the browser
directly and have to do this...
分类:
其他好文 时间:
2014-06-07 07:14:40
阅读次数:
290
Partition ListGiven a linked list and a valuex,
partition it such that all nodes less thanxcome before nodes greater than or
equal tox.You should pres...
分类:
其他好文 时间:
2014-06-07 06:24:57
阅读次数:
179
jQuery触屏插件:Tap,使用方法非常简单,例:$("#domid").tap(function(){
alert("You tapped me! -- by"+this.innerText);});依赖jquery 1.7+01$.fn.tap =
function(fn){02 va...
分类:
Web程序 时间:
2014-06-05 19:17:55
阅读次数:
413
题目链接 You are given an n x n 2D matrix representing
an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do
this in-place? ...
分类:
其他好文 时间:
2014-06-05 16:56:29
阅读次数:
228
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-06-05 14:15:07
阅读次数:
221
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b ="1"Return"100".public class
Solution { /**The program is us...
分类:
其他好文 时间:
2014-06-05 14:08:35
阅读次数:
188
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