Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Wed Dec 14 09:43:13 UTC 2016 There wa ...
分类:
编程语言 时间:
2016-12-14 19:19:20
阅读次数:
1184
My chin raised a fraction. 我的下巴抬起来了一点。 我略微抬起下颚。 "No, she did not send me here. I sent myself." 不是,我不是被送来这里的,是我自己要来的。 His eyebrows knit together. 他的眉毛同 ...
分类:
其他好文 时间:
2016-12-14 18:29:48
阅读次数:
189
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: ...
分类:
其他好文 时间:
2016-12-13 15:41:33
阅读次数:
207
题目大意:把一个只含1,2,3的序列改成形如111……222……333……或333……222……111……的形式最少改几个数。 题解:光看这个数列无从知晓答案,所以试着采用DP。由于每个数变1,2,3与后面的数怎么变密切相关,所以F[i][j]表示前i个数中,第i个数变j后满足第一种形态的最少次数, ...
分类:
其他好文 时间:
2016-12-11 12:17:36
阅读次数:
164
Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a ...
分类:
其他好文 时间:
2016-12-11 03:09:50
阅读次数:
168
Linux内核启动过程概述 Linux的启动代码真的挺大,从汇编到C,从Makefile到LDS文件,需要理解的东西很多。毕竟Linux内核是由很多人,花费了巨大的时间和精力写出来的。而且直到现在,这个世界上仍然有成千上万的程序员在不断完善Linux内核的代码。今天我们主要讲解的是Linux-2.6 ...
分类:
系统相关 时间:
2016-12-07 01:29:18
阅读次数:
343
复习一下KMP算法 KMP的主要思想是利用字符串自身的前缀后缀的对称性,来构建next数组,从而实现用接近O(N)的时间复杂度完成字符串的匹配 对于一个字符串str,next[j] = k 表示满足str[0...k-1] = str[j-k...j-1]的最大的k,即对于子串str[0...j-1 ...
分类:
其他好文 时间:
2016-12-03 20:52:47
阅读次数:
154
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:
其他好文 时间:
2016-12-03 14:50:13
阅读次数:
153