Construct Binary Tree from Inorder and Postorder TraversalGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You may assu...
分类:
其他好文 时间:
2014-07-31 23:26:00
阅读次数:
286
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more th...
分类:
其他好文 时间:
2014-07-31 17:16:57
阅读次数:
221
最近在做烧写工具的优化工作,有一些关于USB的内容需要总结一下其中包括设备的初始化过程和枚举过程。
在枚举的过程中,设备会一直等PC端的状态,当等到reset命令时会对设备进行重新枚举。但是这个reset终端是如何而来呢?
Halt Conditions
A control endpoint may recover from a halt condition upon receiving...
分类:
其他好文 时间:
2014-07-30 20:48:14
阅读次数:
168
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example: Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-30 20:33:34
阅读次数:
193
these are the basic steps of installing domU with xen-tools in ubuntu13.04 64bit in xen4.3you can also use virt-manager which has an UI, but there may...
分类:
其他好文 时间:
2014-07-30 20:05:14
阅读次数:
588
SYMPTOMS
在利用dbca创建数据库时,当设置完成所有参数,开始装时 跑到2% 就报错 ORA-01034 ORACLE not available,
如下图
CAUSE
There's a script in ORACLE_HOME/sqlplus/admin which is called glogin.sql. This script is autom...
分类:
数据库 时间:
2014-07-30 14:47:33
阅读次数:
505
Baby Steps-VarsityGiant Step-Astronauts(May'n?椎名慶治)阅读时可以听听这两首歌,加深对这个算法的理解。(Baby steps少女时代翻唱过,这个原唱反而不是很有名……Giant Step就比较碉,是一个假面骑士片的插曲,由超碉的May'n和一个人建立的临...
分类:
其他好文 时间:
2014-07-30 12:01:53
阅读次数:
245
题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may com....
分类:
编程语言 时间:
2014-07-30 05:35:13
阅读次数:
260
题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may com....
分类:
编程语言 时间:
2014-07-30 05:35:03
阅读次数:
309
在学习nodejs partials view时,怎么都不能运行成功。经过艰苦探索,终于成功了,分享一下。Cause: nodejs 的express 版本之间不是很兼容,各个版本差异很大,一般用npm 默认安装的都是最新版本的express。Solution:partials() 如果要直接在ej...
分类:
Web程序 时间:
2014-07-29 21:29:22
阅读次数:
443