SHOW VARIABLES LIKE '%partition%';+-----------------------+-------+| Variable_name | Value |+-----------------------+-------+| have_partition_engine ....
分类:
数据库 时间:
2015-06-11 18:37:32
阅读次数:
167
No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ...
分类:
其他好文 时间:
2015-06-11 16:16:15
阅读次数:
113
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a palindr...
分类:
其他好文 时间:
2015-06-11 14:38:52
阅读次数:
117
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:
其他好文 时间:
2015-06-11 14:20:49
阅读次数:
93
正常dfspublic class Solution { public ArrayList> partition(String s) { ArrayList> res = new ArrayList>(); if(s==null||s.length()==0) re...
分类:
其他好文 时间:
2015-06-11 12:27:43
阅读次数:
98
Palindrome Number
Determine
whether an integer is a palindrome. Do this without extra space.
Some
hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of conver...
分类:
编程语言 时间:
2015-06-11 00:14:55
阅读次数:
173
思路:1. 空间复杂度为 o(n) 解法. 创建两个链表, 分别记录大于 x 和小于 x 的节点, 最后合并2. o(1) 的空间复杂度解法. 四个指针, 分别指向小于 x 部分链表的头, 尾, 指向大于 x 部分链表的头, 尾为了简单,我这里使用1的思路。# Definition for sing...
分类:
其他好文 时间:
2015-06-10 18:38:26
阅读次数:
109
win7是这样启动的: BIOS-->MBR(硬盘主引导记录Master Boot Record 占446bytes)-->DPT(分区表 Disk Partition Table 占64bytes)-->pbr(硬盘分区引导记录 partition boot record)--> Bootmgr....
J - Palindrome Numbers
Time Limit:3000MS Memory
Limit:0KB 64bit IO Format:%lld & %llu
Submit Status Practice UVALive
2889
WA了一版面,我也是醉了,就因为一个编译环境不同。。。。。。
说多了都是泪。
题...
分类:
其他好文 时间:
2015-06-10 14:11:31
阅读次数:
131
基础但是要掌握 int a = 'A'这种写法,以及s.trim(); s = s.toUpperCase();public class Solution { public boolean isPalindrome(String s) { if(s==null ||...
分类:
其他好文 时间:
2015-06-10 11:56:06
阅读次数:
101