PAT (Basic Level) Practise (中文)
分类:
其他好文 时间:
2014-08-28 11:17:39
阅读次数:
193
测试环境模拟:
SQL> drop table t_col_type purge;
create table t_col_type(id varchar2(20),col2 varchar2(20),col3 varchar2(20));
insert into t_col_type select rownum,'abc','efg' from dual connect by level...
分类:
其他好文 时间:
2014-08-27 23:28:28
阅读次数:
331
PAT (Basic Level) Practise (中文)
分类:
其他好文 时间:
2014-08-27 23:24:08
阅读次数:
260
PAT (Basic Level) Practise (中文)
分类:
其他好文 时间:
2014-08-27 23:14:38
阅读次数:
386
LeetCode: Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to...
分类:
其他好文 时间:
2014-08-27 23:10:28
阅读次数:
316
LeetCode: Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level ...
分类:
其他好文 时间:
2014-08-27 21:55:48
阅读次数:
326
array('level_1_id' => SEARCH_LEVEL_1_ID,'level_1_name' => SEARCH_LEVEL_1_NAME,'level_2_id' => 14,'level_2_name' => '百度',),24 => array('level_1_id' =>....
分类:
Web程序 时间:
2014-08-27 20:30:28
阅读次数:
429
publicvoid getHitRect(Rect outRect) Added in API level 1 Hit rectangle in parent's coordinates:找到控件占据的矩形区域的矩形坐标ParametersoutRect: The hit recta...
分类:
其他好文 时间:
2014-08-27 20:22:18
阅读次数:
190
思路: 使用两个队列(一个可以顺序读,所以用vector模拟),每个队列放一层结点。
题解: 两种方法: 1. 使用栈: O(n) Time, O(n) Space。 2. Morris traversal (构造线索树), O(n) Time, O(1) Space.
分类:
其他好文 时间:
2014-08-27 20:16:18
阅读次数:
227
思想: 若递归,传入层号。若迭代,使用队列,在每层结束时,加入一个标记。
思想: 目前用两种方法:1 同上,最后将结果反转一下。 2.先求出最大层数,再层序遍历。(也许还有更好的方法)
分类:
其他好文 时间:
2014-08-27 20:16:08
阅读次数:
212