Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-11-27 16:14:23
阅读次数:
184
如果你在Tools>Options>Editor>Code Completion>Language: Java没有找到设置delay的选项。那就去C盘(如果你用的是Windows的话(就算Netbeans没有装在C盘,这个文件也是在系统盘C盘的))搜索这个文件:org-netbeans-module...
分类:
Web程序 时间:
2014-11-27 12:24:44
阅读次数:
239
If you go to the current version and open up the bin > release folder, you'll get a ZIP file containing the relevant files as well as a Word document ...
自从懂了并查集只后,感觉好多题都是并查集,就像哪一天的字典树一样,这道题一看就是一个并查集,最后查询父节点有几个,
难点:建模的时候应该吧上下联通的和左右联通的标记一下,只要他们和上下左右的都能连通,就把他们并到一个集合里面,我是只判断下和右即可,
源代码:
#include
#include
int up[8], down[8], right[8], left[8];
int par[...
分类:
其他好文 时间:
2014-11-27 09:16:38
阅读次数:
162
cool thing happen today :) envrioment set up and seleniumn can run. let's explore the selenium-webdirversave the comand as bat, so next time just doub...
分类:
编程语言 时间:
2014-11-27 00:00:56
阅读次数:
499
question: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 t...
分类:
其他好文 时间:
2014-11-26 23:59:52
阅读次数:
381
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.Solution:The same as N-Quee...
分类:
其他好文 时间:
2014-11-26 23:56:59
阅读次数:
250
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 numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-11-26 22:48:27
阅读次数:
255
问题描述:
Follow up for "Find Minimum in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Suppose a sorted array is rotated at som...
分类:
其他好文 时间:
2014-11-26 22:40:43
阅读次数:
240
takeover为冷备份
冷备份
cold back-up;
热备份
warm/hot backup
冷备份发生在数据库已经正常关闭的情况下,当正常关闭时会提供给我们一个完整的数据库。冷备份时将关键性文件拷贝到另外的位置的一种说法。对于备份Oracle信息而言,冷备份时最快和最安全的方法。冷备份的优点是:
1、 是非常快速的备份方法(只需拷文件)
2、 容易归档(简...
分类:
其他好文 时间:
2014-11-26 21:00:10
阅读次数:
251