Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
编程语言 时间:
2014-07-12 13:13:24
阅读次数:
195
1、window.open()参数window.open(pageURL,name,parameters)其中:pageURL为子窗口路径name为子窗口句柄parameters为窗口参数(各参数用逗号分隔),如常用的'height=100,width=400,top=0,left=0,toolba...
settings里的设置PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname('__file__')))MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')MEDIA_URL = '/med...
分类:
其他好文 时间:
2014-07-09 17:55:20
阅读次数:
1986
关于 “A LEFT JOIN B ON 条件表达式” 的一点提醒ON条件(“A LEFT JOIN B ON 条件表达式”中的ON)用来决定如何从B表中检索数据行,即使on中包含有A表中的列的限制条件,也不会过滤A的任何数据(A的数据只会通过where过滤)。如果B表中没有任何一行数据匹配ON的条...
分类:
数据库 时间:
2014-07-09 16:57:08
阅读次数:
358
参考资料:红黑树我的实现 1 #define BLACK 1 2 #define RED 0 3 4 struct node 5 { 6 int value; 7 node *left, *right, *parent; 8 bool color; 9 ...
分类:
其他好文 时间:
2014-07-09 13:37:56
阅读次数:
144
普通应用:importflash.display.StageAlign;importflash.display.StageScaleMode;stage.align=StageAlign.TOP_LEFT;stage.scaleMode="noScale";stage.addEventListener(Event.RESIZE,resizeHandler);functionresizeHandler(event:Event){ bj.width=stage.stageWidth; bj.height..
分类:
其他好文 时间:
2014-07-09 08:51:40
阅读次数:
427
当 android:orientation="vertical"时, 只有水平方向的设置才起作用,垂直方向的设置不起作用。即:left,right,center_horizontal 是生效的。当 android:orientation="horizontal" 时, 只有垂直方向的设置才起作用,水...
分类:
移动开发 时间:
2014-07-08 22:35:30
阅读次数:
188
线段树应用:
有一个数列,初始时为 a1,a2,… aN (N
1) 将 ai 的值加上 val ;
2) 对于一个区间[l,r],该区间的和。
3) 对于一个区间[l,r],求该区间的最大值。
数据结构:
//Node Type
struct Node{
int left, right;
int max, sum;
} tree[maxn];
/*
tree[k]'...
分类:
其他好文 时间:
2014-07-08 21:31:33
阅读次数:
237
GetWindowRect(Main, re1);
main_DC := GetWindowDC(Main);
rg1 := CreateEllipticRgnIndirect( re1 );
//CreateRectRgnIndirect( re1 );
//CreateRoundRectRgn( re1.Left , re1.Top - 100, re1.Right - 50, re1...
分类:
其他好文 时间:
2014-07-08 12:51:31
阅读次数:
168
2014.7.8fb#include using namespace std;struct TreeNode{ int val; TreeNode *left; TreeNode *right; TreeNode(int val) { left = NUL...
分类:
其他好文 时间:
2014-07-08 11:50:56
阅读次数:
147