原题网址:http://acm.timus.ru/problem.aspx?space=1&num=1519 有关插头dp和状态压缩请参考:http://wenku.baidu.com/link?url=AFuYe_EfR5yXMNK0rY-TaLe6LLgKhsOVxBM1RQULxElPrvjQ ...
分类:
其他好文 时间:
2016-08-09 14:59:08
阅读次数:
193
1. 问题描述 Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Tags: Linked List Two PointersSimi ...
分类:
其他好文 时间:
2016-08-09 00:18:46
阅读次数:
131
This webpage covers the space and time Big-O complexities of common algorithms used in Computer Science. When preparing for technical interviews in the past, I found myself spending hours crawling the internet...
分类:
其他好文 时间:
2016-08-08 22:51:24
阅读次数:
240
一、more命令,功能类似 cat ,cat命令是整个文件的内容从上到下显示在屏幕上。 more会以一页一页的显示方便使用者逐页阅读,而最基本的指令就是按空白键(space)就往下一页显示,按 b 键就会往回(back)一页显示,而且还有搜寻字串的功能 。more命令从前向后读取文件,因此在启动时就 ...
分类:
系统相关 时间:
2016-08-08 22:24:08
阅读次数:
293
使用Backup创建测试环境之后,发现testdb的Log File过大,达到400GB,由于测试环境实际上不需要这么大的Log Space,占用400GB的Disk Space实在浪费Disk Resource,于是使用DBCC Shrink收缩Log File: 命名执行完成之后,发现还有300 ...
分类:
数据库 时间:
2016-08-08 14:18:46
阅读次数:
268
bash通配符:*:?:[]:所有以m,n,r开头的以.conf结尾的文件eg:[mnr].conf[^]:非[]中的[[:space:]][[:upper:]][[:lower:]][[:alnum:]][[:digit:]][[:punct:]]通配符:需要说明的是:通配符看起来有点象正则表达式语句,但是它与正则表达式不同的,不能相互混淆。把通配符理解为she..
分类:
其他好文 时间:
2016-08-08 01:06:35
阅读次数:
151
A bit Greedy can achieve O(m) - the mid station between 2 adjacent cities has the longest distance within that range. ...
分类:
其他好文 时间:
2016-08-07 15:14:47
阅读次数:
208
<Ctrl-Alt-Space>:打开代码提示<Ctrl-Shift-Up/Down>:行上移/下移<Alt+Up/Donw>:向上/下函数跳动<Ctrl+j>代码生成<Ctrl+j+Toast+Enter>生成Toast<Ctrl-n>打开类文件<Ctrl-Shift-n>打开文件<Ctrl-Alt-h>显示选中函数在project..
分类:
移动开发 时间:
2016-08-07 01:02:07
阅读次数:
171
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space ...
分类:
其他好文 时间:
2016-08-06 06:59:15
阅读次数:
239
var firstInterval; var secondInterval; function firstAlert(){ if(firstInterval) clearInterval(firstInterval); <span style="white-space:pre"> </span>// ...
分类:
其他好文 时间:
2016-08-05 21:12:32
阅读次数:
146