Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-01-14 12:52:20
阅读次数:
176
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
...
分类:
其他好文 时间:
2015-01-14 11:08:38
阅读次数:
226
编译PHP文件
1、file--settings--Project:script_01_02.php(此文件名会根据情况而变)--Directories--Add Content Root,添加php所在的文件夹
2、file--settings--Languages & Frameworks--PHP:
PHP language level:5.6(根据php版本而定)
Interpre...
分类:
Web程序 时间:
2015-01-13 23:22:45
阅读次数:
510
Android 程序中实现Tab类型界面很常见,本人在做项目的时候也经常用到,所以想在这里总结一下,实现tab类型界面的几种方式,供大家参考。如有不对之处,欢迎大家指正!
一、TabActivity + TabWidget + TabHost.
实现TAB类型界面,首先想到的就是这种方式。但是在API level 13之后官方就不建议使用它了。不过还是在这里简单说一下它的使用吧...
分类:
移动开发 时间:
2015-01-13 21:35:57
阅读次数:
224
问题描述:
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given ...
分类:
其他好文 时间:
2015-01-13 19:49:51
阅读次数:
152
Posted on Friday, October 11, 2013 .Net has three low-level mechanisms to run code in parallel: Thread, ThreadPool, and Task. These three mechanism se...
分类:
其他好文 时间:
2015-01-13 19:35:59
阅读次数:
154
1、从上往下查询使用start with a='起始ID' connect by prior a= ba为子项,b为父项。select F_CA_CODE,F_CA_PARENTCODE,LEVEL from RGT_UNIT start with F_CA_CODE = '0' connect b...
分类:
数据库 时间:
2015-01-13 17:22:39
阅读次数:
161
使用start with a='起始ID' connect by prior a= ba为子项,b为父项。select F_CA_CODE,F_CA_PARENTCODE,LEVEL from RGT_UNIT start with F_CA_CODE = '0' connect by prior ...
分类:
数据库 时间:
2015-01-13 17:18:53
阅读次数:
208
旧指令新指令使某服务自动启动chkconfig --level 3 httpd onsystemctl enable httpd.service使某服务不自动启动chkconfig --level 3 httpd offsystemctl disable httpd.service检查服务状态ser...
分类:
其他好文 时间:
2015-01-12 20:56:41
阅读次数:
145
想查询 dev/video的类型,找不到命令,闲的蛋疼留个模版
用的时候把video列表写进solve前的 dev_list即可
#include
#include
#include
#include
#include /* low-level i/o */
#include
#include
#include
#include
#include...
分类:
系统相关 时间:
2015-01-12 17:39:19
阅读次数:
385