码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
Codeforces Round #265 (Div. 2) C. No to Palindromes!
Paul hates palindromes. He assumes that string s is tolerable if each its character is one of the first p letters of the English alphabet and s doesn't contain any palindrome contiguous substring ...
分类:其他好文   时间:2014-09-17 18:47:02    阅读次数:247
[leetcode] Valid Palindrome @ Python
原题地址:https://oj.leetcode.com/problems/valid-palindrome/题意:Given a string, determine if it is a palindrome, considering only alphanumeric characters an...
分类:编程语言   时间:2014-09-16 08:05:40    阅读次数:239
[LeetCode] Palindrome Number
public class Solution { public boolean isPalindrome(int x) { if (x= 10 ) highNum *= 10; while (highNum > lowNum) { ...
分类:其他好文   时间:2014-09-13 20:01:25    阅读次数:171
Palindrome Partitioning II
leetcode 经典题 DP Palindrome Partitioning II...
分类:其他好文   时间:2014-09-11 23:56:32    阅读次数:332
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
Leetcode-Palindrome Number
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-09-11 20:53:22    阅读次数:247
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
hdu 4731 Minimum palindrome(构造)
题目链接:hdu 4731 Minimum palindrome 题目大意:给定n和m,m表示m种字符。求一个长度为n字典序最小的字符串,满足存在的回文子串长度尽量短。 解题思路:构造。 m = 1:那么不管n为多少,肯定都用a构造m > 2: 用abcabc...构造出来的串回文子串长度最多为1m = 2:对于n #include #include #include u...
分类:其他好文   时间:2014-09-09 13:25:08    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!