Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-09-18 07:30:53
阅读次数:
232
top命令 top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。 top?显示结果如下所示: 01:06:48 up 1:22, 1 user, load a...
分类:
系统相关 时间:
2014-09-18 04:23:03
阅读次数:
345
1 top - 11:22:42 up 9:53, 1 user, load average: 0.00, 0.01, 0.052 Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie3 Cpu(s): 3....
分类:
其他好文 时间:
2014-09-18 00:40:13
阅读次数:
318
扩展《编程导论(Java)·3.2.6》的内容,全面介绍enum。
1.基本用法
Java 5 引入的关键字enum,用于定义枚举类型(enumerated type)。
public enum Direction{
UP,DOWN,LEFT,RIGHT
}☆有效地减少代码中public static final命名常量的声明。
☆编译后生成Direction.class文件。...
分类:
编程语言 时间:
2014-09-17 23:23:53
阅读次数:
327
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路:...
分类:
其他好文 时间:
2014-09-17 21:48:42
阅读次数:
302
I’m using OpenCV for my 4th year design project and setting it up was a huge pain. I had to look through a whole bunch of different sites to figure ou...
分类:
其他好文 时间:
2014-09-17 21:43:42
阅读次数:
317
定义(定义时不能赋值):declare @名 类型赋值:set (或select) @名=’需要赋给@名的值’存储过程:手动调用弊端是不容易迁移数据(迁移时迁表,存储时重写)格式:create procedure 存储过程名(UP_表名_操作) 行参(传递的行参)AsBegin 可定义变量(临时用的...
分类:
其他好文 时间:
2014-09-17 18:11:22
阅读次数:
258
一、测试是否能管理client使用模块cmd.run可以查看到client的ip地址[root@salt_server~]#salt‘*‘cmd.run‘ipa‘
salt_client1:
1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
inet127.0.0.1/8scopehos..
分类:
其他好文 时间:
2014-09-16 16:09:31
阅读次数:
274
The people who get on in this world are the people who get up and look forthe circumstances they want, and if they can't find them, make them取得成功的人,都是...
分类:
其他好文 时间:
2014-09-16 14:01:40
阅读次数:
104
最大子矩阵,(City Game)SEERC 2004,LA 3029
白书上的例题,看了两节课,终于理解了。DP的思想。
扫描的时候维护 up朝上能有多少空格,left 最多朝左走到多少,right 朝右走到多少。
所以只需要扫描一遍即可得出答案 = up*(right-left+1)
我定义left数组的时候跟 iostream 冲突了。
#inclu...
分类:
其他好文 时间:
2014-09-16 12:45:10
阅读次数:
150