题目
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", ...
分类:
其他好文 时间:
2014-05-14 01:10:30
阅读次数:
318
Bob enjoys playing computer games, especially
strategic games, but sometimes he cannot find the solution fast enough and then
he is very sad. Now he h...
分类:
其他好文 时间:
2014-05-14 00:29:42
阅读次数:
251
TriangleGiven a triangle, find the minimum path
sum from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given...
分类:
其他好文 时间:
2014-05-13 18:51:44
阅读次数:
297
Given s1, s2, s3, find whether s3 is formed by
the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When
s3 = "aadbbcbcac", retur...
分类:
其他好文 时间:
2014-05-13 18:11:42
阅读次数:
249
If you runfsck, the filesystem check and repair
command, it might find data fragments that are not referenced anywhere in the
filesystem. In particula...
分类:
其他好文 时间:
2014-05-13 16:59:54
阅读次数:
276
提示:该实验平台是在RedHatb6下进行的
配置成功的前提有三个:
(1):在window下能ping的通linux
(2):关闭linux 防火墙 执行指令:/etc/init.d/iptables stop
(3):使SElinux处于宽容模式 执行指令:setenforce permissive
一、配置tftp服务器步骤
(1):挂载磁盘,安装tptp-serv...
分类:
系统相关 时间:
2014-05-13 16:24:59
阅读次数:
409
定时清理clientmqueue目录垃圾文件防止占满磁盘空间:/var/spool/clientmqueue --这个目录会自动创建很多的文件,可以用下面的命令来清理find/var/spool/clientmqueue/–type f|xargsrm–frmkdir/server/scripts–pvimdel.sh:find/var/spool/clientmqueue/–type..
分类:
其他好文 时间:
2014-05-13 12:14:48
阅读次数:
412
Assembly instructions
汇编初步学习
汇编0基础的戳上面,刷一遍,包治百病
%eax寄存器的值与C语言的return的值相对应
(%esp)地址处储存的是函数的返回地址 return address
%esp 栈顶寄存器 保存栈顶指针。
%ebp = boundary between p...
分类:
其他好文 时间:
2014-05-13 06:28:37
阅读次数:
416
1.内存分配方式
内存分配方式有三种:
[1]从静态存储区域分配。内存在程序编译的时候就已经分配好,这块内存在程序的整个运行期间都存在。例如全局变量,static变量。
[2]在栈上创建。在执行函数时,函数内局部变量的存储单元都可以在栈上创建,函数执行结束时这些存储单元自动被释放。栈内存分配运算内置于处理器的指令集中,效率很高,但是分配的内存容量有限。
[3]从堆上分配,亦...
分类:
其他好文 时间:
2014-05-12 23:57:25
阅读次数:
508