码迷,mamicode.com
首页 >  
搜索关键字:partitioning by pali    ( 433个结果
Leetcode--Palindrome Partitioning II
Problem Description: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example...
分类:其他好文   时间:2014-09-11 21:00:32    阅读次数:208
Palindrome Partitioning
leetcode 经典题 Palindrome Partitioning 两种方法实现和错误规避。...
分类:其他好文   时间:2014-09-11 19:27:32    阅读次数:152
Palindrome Partitioning
/* 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"], ["a","a"...
分类:其他好文   时间:2014-09-10 12:33:50    阅读次数:175
Palindrome Partitioning leetcode
Palindrome Partitioning  Total Accepted: 18096 Total Submissions: 69797My Submissions Given a string s, partition s such that every substring of the partition is a palindrome. Return all...
分类:其他好文   时间:2014-09-09 18:29:29    阅读次数:205
Uva401Palindromes
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a pali....
分类:其他好文   时间:2014-09-04 00:01:57    阅读次数:310
[leecode]Scramble String
Scramble StringGiven a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible...
分类:其他好文   时间:2014-09-02 00:17:33    阅读次数:260
LeetCode: Scramble String
LeetCode: Scramble StringGiven a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is o...
分类:其他好文   时间:2014-09-01 22:42:34    阅读次数:308
UVa 11584 Partitioning by Palindromes(DP 最少对称串)
题意  判断一个串最少可以分解为多少个对称串   一个串从左往后和从右往左是一样的  这个串就称为对沉串 令d[i]表示给定串的前i个字母至少可以分解为多少个对称串  那么对于j=1~i   若(i,j)是一个对称串  那么有  d[i]=min(d[i],d[j-1]+1)   然后就得到答案了 #include #include #include using namespace std;...
分类:其他好文   时间:2014-08-25 17:11:44    阅读次数:181
19. Palindrome Partitioning && Palindrome Partitioning II (回文分割)
思想: 简单的深度优先搜索。 思想: 动态规划: n = s.length(); Record[i] = 0 , ( i = n || is...
分类:其他好文   时间:2014-08-25 02:17:23    阅读次数:187
Palindrome Partitioning系列
Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:其他好文   时间:2014-08-23 21:34:11    阅读次数:288
433条   上一页 1 ... 35 36 37 38 39 ... 44 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!