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 tr...
分类:
其他好文 时间:
2014-12-26 16:46:08
阅读次数:
159
#!/bin/bashcd/tmpLOG_PATH=`find/data/logs/-mtime+1-name"*".log|awk-F/‘NF--‘|tr-s"""/"|uniq`foriin${LOG_PATH};docd${i}find.!-name"."-typed-prune-o-typef-mtime+1-name"*.log"-print|awk-F/‘{print$2}‘|xargsgzip-9done
分类:
其他好文 时间:
2014-12-26 14:51:49
阅读次数:
133
1.tr[-ds]SET1…:可以用来删除一段讯息中的文字,或者进行文字信息转换,参数:1)-d:删除信息中SET1这个字符串2)-s:取代重复的字符串不加任何参数,分别需要两个字符串或正则表达式,执行替换操作,分别对应源字符串和替换后字符串2.col[-xfb][-l缓冲区列表]:过滤控制字符..
分类:
系统相关 时间:
2014-12-26 06:16:21
阅读次数:
223
在一个7x7的表格当中nth-child(1); td.parents("table").find("tr :nth-child(1)").css("background-color", "blue");得到eq(1);td.parents("table").find("tr :eq(1)").cs...
分类:
Web程序 时间:
2014-12-25 17:40:33
阅读次数:
168
MYSQLinsert速度过慢最近在用MySQL做存储,测试中发现插入数据太慢了,插入速度只有20MY SQL insert 速度过慢最近在用MySQL做存储,测试中发现插入数据太慢了,插入速度只有20-30 条/秒,后来查资料后,将MySQL的1个参数:innodb_flush_log_at_tr...
分类:
数据库 时间:
2014-12-24 20:06:38
阅读次数:
201
document.getElementById("")返回对拥有指定id的第一个对象的引用。<tr><th>id</th><th>name</th><th>age</th><th>address</th></tr><tr><th>1</th><th>zhangsan</th><thid="ag..
分类:
编程语言 时间:
2014-12-22 02:11:21
阅读次数:
150
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2014-12-21 21:51:30
阅读次数:
234
class Solution {public: int maxProduct(int A[], int n) { if (A == NULL || n res) { res = tr; } if (tr ...
分类:
其他好文 时间:
2014-12-21 15:14:01
阅读次数:
128
1、// 下面的效果是将标题栏titleBar向上平移自身高度的距离,即隐藏 // 每两个为一组参数,相对于本身控件的X起始、x结束、y起始、y结束 TranslateAnimation translate = new Tr...
分类:
移动开发 时间:
2014-12-20 18:08:44
阅读次数:
285
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2014-12-20 16:49:47
阅读次数:
159