Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2014-07-09 00:53:55
阅读次数:
277
BACKGROUNDThis disclosure relates generally to the field of computer graphics. More particularly, but not by way of limitation, it relates to techniqu...
分类:
其他好文 时间:
2014-07-08 22:52:36
阅读次数:
254
1. 查看文件内容常用的命令
cat : 由第一行显示文件内容
tac: 从最后一行开始显示,与cat相反
nl : 文件内容和行号一起输出
more: 一页一页显示
less: 与more类似,可以往前翻页
head: 取头部几行
tail: 取尾部几行
od: 以二进制方式读取文件内容...
分类:
系统相关 时间:
2014-07-08 21:30:55
阅读次数:
253
问题:Windows 8.1系统上安装VirtualSVN Server发生Service 'VisualSVN Server' failed to start. Please check VisualSVN Server log in Event Viewer for more details. 错误
点击retry之后,也无法使用。
网上方案:
在弹出错误之后,运行:ser...
分类:
其他好文 时间:
2014-07-08 19:23:02
阅读次数:
220
The string "PAYPALISHIRING" is written in a zigzag pattern on a given
number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I...
分类:
其他好文 时间:
2014-07-08 17:42:31
阅读次数:
192
欧拉通路+并查集+字典树
题意是说 木棍两头有颜色,怎么排让它连成一串。颜色相同可以接起来。
最开始想用map水过去,一直TLE。怒点字典树天赋……花了一上午。
字典树不多介绍,我的节点开小了,CE好几次,才想起
“There is no more than 250000 sticks.”
“A word is a sequence of lowercas...
分类:
其他好文 时间:
2014-07-08 17:22:26
阅读次数:
180
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2014-07-08 16:57:40
阅读次数:
193
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process ...
分类:
其他好文 时间:
2014-07-08 14:12:32
阅读次数:
226
题目如下:
Problem A: The Monocycle
A monocycle is a cycle that runs on one wheel and the one we will be considering is a bit more special. It has a solid wheel colored with fiv...
分类:
其他好文 时间:
2014-07-06 11:49:47
阅读次数:
233
直接上配置,你懂的
lai'mac:~ laijingli$ more .bash_profile
###add my scripts to the search path for convenient daily usage
export PATH=$PATH:/Users/laijingli/autoshell:/opt/local/bin:/opt/local/sbin
##...
分类:
其他好文 时间:
2014-07-06 10:12:26
阅读次数:
185