Problem ThreepalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCB...
分类:
其他好文 时间:
2014-10-30 07:09:03
阅读次数:
271
PalindromeDescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You ar...
分类:
编程语言 时间:
2014-10-29 21:07:50
阅读次数:
219
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2014-10-29 14:35:36
阅读次数:
158
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-10-29 12:44:21
阅读次数:
171
Determine whether an integer is a palindrome. Do this without extra space.这题貌似解法挺多,直接用简单的把数倒置,没有考虑数据溢出的问题,如需解决可以把转置数设为long long即可。另外方法可以用到前后匹配、递归比较等。 ...
分类:
其他好文 时间:
2014-10-29 12:30:15
阅读次数:
115
复习下LVM知识:LVM的结构简图如下:hda1hdc1sdc(PV:s物理卷,一般为分区或整个硬盘)\|/\|/diskvg(VG卷组由物理卷组成)/|\/|\usrlvrootlvvarlv(LV:s逻辑卷在卷组上创建)|||ext2reiserfsxfs(建立在逻辑卷上的文件系统)PV:实体分割区(Partition)/dev/had...VG:虚拟硬盘/dev/v..
分类:
其他好文 时间:
2014-10-28 15:42:16
阅读次数:
266
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2014-10-28 10:29:07
阅读次数:
204
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.//数字或字母For example,"A man, a plan, a cana...
分类:
其他好文 时间:
2014-10-27 20:55:25
阅读次数:
178
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-10-27 19:28:33
阅读次数:
217
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","b"],...
分类:
其他好文 时间:
2014-10-27 15:39:02
阅读次数:
227