Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
基本思想和知道前序与中序的思想一样,中序的某一节点的左节点一定是该节点的左子树,而后序遍历的某一节点的左节点一定...
分类:
其他好文 时间:
2014-12-05 17:36:45
阅读次数:
116
Index downloads are disabled, search results may be incomplete.
分类:
其他好文 时间:
2014-12-05 16:53:12
阅读次数:
598
题目
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start tim...
分类:
其他好文 时间:
2014-12-05 15:30:44
阅读次数:
207
需要安装的工具:nginxwebpyspawn-fcgiflup注意:You may replace index.py with your own file name./path/to/www Is the path to the directory where your webpy applica...
分类:
Web程序 时间:
2014-12-05 01:54:28
阅读次数:
217
分片:1. 在job.submit() 提交job之后 会调用submitter.submitJobInternal(Job.this, cluster);2. 在submitJobInternal()函数中 会给job创建分片int maps = writeSplits(job, submitJo...
分类:
其他好文 时间:
2014-12-04 19:38:42
阅读次数:
161
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
简单的思想:正序排列时,某节点的右节点一定是该节点的右子树,中序排列,某节点的左节点一定是该节点的左子树;
...
分类:
其他好文 时间:
2014-12-04 18:03:12
阅读次数:
143
一.前言大家都知道nodejs是一个单进程单线程的服务器引擎,不管有多么的强大硬件,只能利用到单个CPU进行计算。所以,有人开发了第三方的cluster,让node可以利用多核CPU实现并行。随着nodejs的发展,让nodejs上生产环境,就必须是支持多进程多核处理!在V0.6.0版本,Nodej...
分类:
Web程序 时间:
2014-12-04 17:42:05
阅读次数:
277
闲来无事,配置一下oracle数据库的随系统自动重启,查阅资料得知,主要需要配置/etc/oratab 和 rc.local。 配置oracle随系统自启动主要使用了$ORACLE_HOME/bin/dbstart文件。先把dbstart的内容贴出来,方便查看
#!/bin/sh
#
# $Id: dbstart.sh 22-may-2008.05:05:45 arogers Exp $
...
分类:
其他好文 时间:
2014-12-04 15:41:10
阅读次数:
237
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates in the array.
...
分类:
其他好文 时间:
2014-12-04 13:59:41
阅读次数:
154