码迷,mamicode.com
首页 >  
搜索关键字:linux基本命令—— cat more w who pwd    ( 37061个结果
Problem Word Break
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
More is better
http://acm.hdu.edu.cn/showproblem.php?pid=1856真的无语了,一个并查集的水题,竟然做了两个多小时,我都怀疑我自己了,还有智商么?题意,找出最多认识人的集合我手残了N次 ,本题1000ms,数组10000000,所以要用哈希查找#include #inclu...
分类:其他好文   时间:2014-07-07 15:22:49    阅读次数:185
linux常用命令大全(转)
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
Swift下标
还记得字典吗?[html]view plaincopyvarnumberOfLegs=["spider":8,"ant":6,"cat":4]numberOfLegs["bird"]=2["bird"]就是下标 下标可以在类和结构体中定义。定义下标[html]view plaincopysubscr...
分类:其他好文   时间:2014-06-30 21:59:22    阅读次数:271
BASH 创建一个命令 f1 使之可以简单管理文件版本
创建命令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
Repeat Number
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
[git常见问题]error: src refspec matches more than one.
今天加班试图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
LeetCode: Word Break [139]
【题目】 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
LeetCode: Word Break II [140]
【题目】 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!