题目
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
本文出自:http://blog.csdn.net/svitter
自己的vimrc。。功能很少,持续更新。
目前支持缩进4个空格,高亮。
用了gvim的example,和bluedust的部分配置文件,用于C++的编辑。
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar
" Last change...
分类:
其他好文 时间:
2014-05-13 16:36:10
阅读次数:
510
定时清理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
今天安装完ubuntu14.04后开始编辑文件,使用vim时提示:使用apt-getinstallvim尝试安装:装完系统后默认已经装了vim了,但是路径不对解决方法:1.找到vim在什么位置#whereisvim2.做链接#ln-s/usr/bin/vim.tiny/usr/bin/vim这时vim就可以正常使用了
分类:
其他好文 时间:
2014-05-13 12:12:44
阅读次数:
876
autofs自动挂载服务需求:把下面这两条命令做成自动挂载172.16.2.6:/share/soft/share/soft172.16.2.6:/share/iso/share/iso客户端:1、#mkdir/share(挂载点)2、#vim/etc/auto.master/share/etc/auto.share--后面这个文件不存在,自定义的名字3、#vim/etc/auto.sharesoft-172..
分类:
其他好文 时间:
2014-05-13 02:06:56
阅读次数:
388
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document; 2)...
分类:
编程语言 时间:
2014-05-12 22:55:47
阅读次数:
409