码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
Palindrome Partitioning
又写完了一道,好开心,洗澡睡觉去~~~明天再看答案好了~ class Solution { public: // 用递归的思想 // 用tmp记录字符串子串,如果tmp是回文的,则递归判断剩下的是否也是回文的,如果判断到字符串结尾,则将得到的回文vector加入到总的vector里 vector p...
分类:其他好文   时间:2014-10-20 23:04:49    阅读次数:301
Valid Palindrome
Valid Palindrome...
分类:其他好文   时间:2014-10-20 21:22:29    阅读次数:163
LeetCode: 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,...
分类:其他好文   时间:2014-10-20 18:53:45    阅读次数:236
leetcode Palindrome Partitioning II
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 ...
分类:其他好文   时间:2014-10-20 07:33:59    阅读次数:234
[Leetcode] Valid Palindrome
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-19 04:49:48    阅读次数:165
leetcode:Palindrome Number【Python版】
一次AC题目要求中有空间限制,因此没有采用字符串由量变向中间逐个对比的方法,而是采用计算翻转之后的数字与x是否相等的方法; 1 class Solution: 2 # @return a boolean 3 def isPalindrome(self, x): 4 o...
分类:编程语言   时间:2014-10-18 23:50:28    阅读次数:299
[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-10-17 20:22:17    阅读次数:220
1159--Palindrome(dp:回文串变形2)
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 53431   Accepted: 18454 Description A palindrome is a symmetrical string, that is, a string read ide...
分类:其他好文   时间:2014-10-17 10:14:13    阅读次数:201
Validate Palindrome 验证回文字符串
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example, "race a car"isnota palindro....
分类:其他好文   时间:2014-10-17 06:26:33    阅读次数:239
poj1159--Palindrome(dp:最长公共子序列变形 + 滚动数组)
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 53414   Accepted: 18449 Description A palindrome is a symmetrical string, that is, a string read ide...
分类:编程语言   时间:2014-10-16 21:42:53    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!