Problem Description:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more diction...
分类:
其他好文 时间:
2014-07-07 16:02:11
阅读次数:
219
http://acm.hdu.edu.cn/showproblem.php?pid=1856真的无语了,一个并查集的水题,竟然做了两个多小时,我都怀疑我自己了,还有智商么?题意,找出最多认识人的集合我手残了N次 ,本题1000ms,数组10000000,所以要用哈希查找#include #inclu...
分类:
其他好文 时间:
2014-07-07 15:22:49
阅读次数:
185
linux 基本命令ls (list 显示当前目录下文件和目录 ls -l 详细显示 =ll )[root@linux ~]# ls [-aAdfFhilRS] 目录名称[root@linux ~]# ls [--color={none,auto,always}] 目录名称[root@linux ~...
分类:
系统相关 时间:
2014-06-30 22:44:24
阅读次数:
461
还记得字典吗?[html]view plaincopyvarnumberOfLegs=["spider":8,"ant":6,"cat":4]numberOfLegs["bird"]=2["bird"]就是下标 下标可以在类和结构体中定义。定义下标[html]view plaincopysubscr...
分类:
其他好文 时间:
2014-06-30 21:59:22
阅读次数:
271
创建命令f1
创建一个shell脚本 f1,放到 $PATH 可以找到的位置:
{CSDN:CODE:411063}
f1用法
1. 创建一个文件 foo.txt,并 backup 它
$ cat foo.txt
1
$ f1 backup foo.txt
2. 修改它
$ cat foo.txt
2
3. 还原到上一个版本
$ f1 ...
分类:
其他好文 时间:
2014-06-30 17:04:38
阅读次数:
228
Problem B: Repeat NumberTime Limit:1 SecMemory Limit:32 MBDescriptionDefinition: a+b = c, if all the digits of c are same ( c is more than ten),then w...
分类:
其他好文 时间:
2014-06-30 14:59:33
阅读次数:
508
今天加班试图push代码的时候,报出了如下错误:
出现这个错误之前,是在远程服务器上创建了一个tag v2.1.1,同时clone的服务器代码指定的分支也是branch v2.1.1,本地用git tag命令可以查看分支:
在本地删除多余的tag标签:
再次push, Everything thing is OK!...
分类:
其他好文 时间:
2014-06-30 09:40:27
阅读次数:
696
【题目】
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet", "code"].
Return true because "leetcode" can be segm...
分类:
其他好文 时间:
2014-06-30 09:02:26
阅读次数:
276
【题目】
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "catsanddog",
dict = ["cat", "cats", "and", "sand", "dog...
分类:
其他好文 时间:
2014-06-30 00:51:41
阅读次数:
295