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
if语句if ( test condition ) statement1;else statement2;// comments/* comments ... */script level:直接在里面声明的变量相当与全局变量,可以直接在每个函数里面访问。在函数里面生命的变量只能在该函数...
分类:
编程语言 时间:
2014-08-27 20:08:18
阅读次数:
170
最近DEV搞的多,想把程序做得看起来专业点,所以稍微研究了一下。
本篇只记录如何实现在列表里面点击某一行可以打开这一行关联的子表内容。效果如下:
下面是实现过程:
1.设计器里面:
在MainView下面新建一个EntryView(create a new level) 这样这个gridControl里面就有2个gridView了。
然后打开你的设计器(Run Desig...
分类:
其他好文 时间:
2014-08-26 23:00:43
阅读次数:
365
The PRODUCT_USER_PROFILE
(PUP) table provides product-level security that supplements the user-level security provided by the SQL GRANT and REVOKE commands and user roles. To create the PUP table, l...
分类:
其他好文 时间:
2014-08-26 11:48:25
阅读次数:
272