- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 leetcode:word-break-ii
1.题目描述 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,
2016-07-26 11:45:15 324
原创 linux的会话、进程、进程组等概念
1.一些缩写 PID = 进程ID (由内核根据延迟重用算法生成) PPID = 父进程ID(只能由内核修改) PGID = 进程组ID(子进程、父进程都能修改) SID = 会话ID(进程自身可以修改,但有限制,详见下文) TPGID= 控制终端进程组ID(由控制终端修改,用于指示当前前台进程组) 2.关于进程、进程组、会话之前的关系 总体关系: 进程属于一个进程组,进程组属
2016-07-25 20:58:44 4188
转载 C++中的string类的用法
要想使用标准C++中string类,必须要包含 #include // 注意是,不是,带.h的是C语言中的头文件 using std::string; using std::wstring; 或 using namespace std; 下面你就可以使用string/wstring了,它们两分别对应着char和wchar_t。 string和wstri
2016-07-20 11:21:23 216
原创 leetcode:word-break
1.题目描述 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", dic
2016-07-20 11:18:39 245
原创 leetcode:linked-list-cycle-ii
题目描述: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it without using extra space? 1.题目理解 什么叫有环?例如:A->B->C->D->E
2016-07-19 10:25:29 235
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人