一、XEN API?VDI clone (session session_id, VDI vdi, Map[string,string] driver_params) Take an exact copy of the VDI and return a reference to the new di...
分类:
其他好文 时间:
2014-07-31 13:02:06
阅读次数:
248
Problem Description
Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:
其他好文 时间:
2014-07-29 15:03:28
阅读次数:
248
Similar with "Longest Consecutive Sequence". Another usage to hashset.Take care of corner cases!class Solution {public: int firstMissingPositive(in...
分类:
其他好文 时间:
2014-07-28 15:16:43
阅读次数:
206
make -dshould give you more than enough information to debug your makefile.Be warned: it will take some time and effort to analyze the output but load...
分类:
其他好文 时间:
2014-07-28 14:58:43
阅读次数:
490
Typical recurrsion\DFS problem. Just take care of memory use.class Solution {public: vector> ret; void go(int currMaxN, int currK, int k, unorde...
分类:
其他好文 时间:
2014-07-28 11:35:40
阅读次数:
240
一 Words 1 distraction 使分心,娱乐,使恼火n e.g. A very clingy child can drive a parent to distraction.一个非常黏人的孩子会让父母不胜其烦。 2 at the wheel 在驾驶室,当主管 e.g. I’ll take...
分类:
其他好文 时间:
2014-07-27 21:38:15
阅读次数:
220
Among other things, Bob is keen on photography. Especially he likes to take pictures of sportsmen. That was the reason why he placed himself in position x0 of
a long straight racetrack and got ready...
分类:
其他好文 时间:
2014-07-25 11:26:31
阅读次数:
447
Nothing to hard to think. Just take care of boundary conditions.class Solution {public: string convert(string s, int nRows) { if(s.empty() |...
分类:
其他好文 时间:
2014-07-23 15:04:36
阅读次数:
227
Another textbook problem. We take back of postorder array as the current root, and then we can split the inorder array: 1st half for current right chi...
分类:
其他好文 时间:
2014-07-23 12:01:56
阅读次数:
210
A collegiate textbook problem. Nothing special, but just take care of your memory use.class Solution {public: TreeNode *_buildTree(int pre[], int &...
分类:
其他好文 时间:
2014-07-23 12:00:46
阅读次数:
248