Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
面DP题的考官都是神经病。。(吐...
分类:
其他好文 时间:
2014-10-01 13:15:31
阅读次数:
242
brief : the quick sort can divide into two steps, the first step is partition, the second step is conquer the subset.i) as the first step, array A[lef...
分类:
其他好文 时间:
2014-10-01 01:21:50
阅读次数:
209
#includevoid print_partition(int n){ int i=1; int m=1; int h=1; int t,r; int a[n+1]; for(;i=r){a[++h]=r;t-=r;} if(t==0)m=...
分类:
其他好文 时间:
2014-10-01 01:10:00
阅读次数:
247
[Leetcode 题解]:Palindrome Number
分类:
其他好文 时间:
2014-09-30 18:53:39
阅读次数:
157
发现:ERROR: The partition with /var/lib/mysql is too full! failed!然后df -h 发现硬盘100% 于是分析到底什么占用了这近两百G的硬盘,结果发现是数据库的备份文件日积月累,占满了这近两百G的硬盘。然后cd /varrm -rf log...
分类:
数据库 时间:
2014-09-29 02:32:36
阅读次数:
302
2014-08-22 BaoXinjian一、摘要1、分区表: 随着表的不断增大,对于新纪录的增加、查找、删除等(DML)的维护也更加困难。对于数据库中的超大型表,可通过把它的数据分成若干个小表,从而简化数据库的管理活动。对于每一个简化后的小表,我们称为一个单个的分区 对于分区的访问,我们不需要使用...
分类:
数据库 时间:
2014-09-28 17:15:27
阅读次数:
365
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","...
分类:
其他好文 时间:
2014-09-27 20:16:10
阅读次数:
211
在一个数组中寻找最大的K个数,我们首先说一种非常简单的方法,利用快速排序中的分割算法,即我们经常看见的partition。这个函数会返回一个 int 类型的值,这个值代表的是前一半数字和后一半数字的分割点,前一半数字都小于等于后一半数字(递增排序),所以,我们只要找到相对应的分割点,即可以找到最大的K个数,或者最小的K个数,这就是利用线性方法可以完成任务的方法。 首先,给出函数声明:in...
分类:
其他好文 时间:
2014-09-27 15:16:59
阅读次数:
124
#include #include #include void quick_sort(int data[], int, int);int partition(int data[], int, int);int main( int argc, char* argv[] ) { int data[8] ...
分类:
其他好文 时间:
2014-09-27 00:09:38
阅读次数:
308
Description
The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that the agent from the competing «Robots Unlimited» has infiltrated into “U.S. Robotics”. «U.S. R...
分类:
其他好文 时间:
2014-09-26 22:34:29
阅读次数:
370