码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
LeetCode[String]: 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: Panama" is a palindrome.  "race a car" is not a...
分类:其他好文   时间:2015-01-22 21:57:56    阅读次数:361
leetcode------Valid Palindrome
标题:Valid Palindrome通过率:21.9%难度:简单Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For exam...
分类:其他好文   时间:2015-01-21 10:09:24    阅读次数:171
[LeetCode#125]Valid Palindrome
The problem:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a...
分类:其他好文   时间:2015-01-21 06:34:49    阅读次数:192
[LeetCode]9.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? (ie, -1) If you are thinking of...
分类:其他好文   时间:2015-01-20 22:21:27    阅读次数:153
Leetcode#132 Palindrome Partitioning II
原题地址动态规划题。最直观的想法就是用cut[i][j]表示子串s[i..j]的最小分割数,则有如下规则:1. 如果s[i..j]是回文串,则cut[i][j]=02. 如果s[i..j]不是回文串,则枚举分割点,将原字符串切成两个子串,求解子问题。递推公式:cut[i][j] = min{cut[...
分类:其他好文   时间:2015-01-20 17:31:50    阅读次数:165
leetcode------Palindrome Number
标题:Palindrome Number通过率:29.1%难度:简单Determine whether an integer is a palindrome. Do this without extra space. 这个题没有理解是因为单词不认识,然后就是不知道什么是回文数,翻译一下,百度一下才....
分类:其他好文   时间:2015-01-19 19:01:54    阅读次数:177
UVa 401 回文词
背景:1WA__for循环限制条件不正确,应该是把最中间那个词也判断一下。2WA__list表建立错误,在T之前多了一个空格。3WA——ans内单词拼写错误!! 学习:1.对于输出复杂,建表复杂的题要格外小心,什么拼写错误之类的别犯!! 2.const char* ans[]={"is not a palindrome.","is a regular palindrome.","is a mi...
分类:其他好文   时间:2015-01-19 12:52:53    阅读次数:117
[leetcode]131 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 [...
分类:其他好文   时间:2015-01-18 18:36:06    阅读次数:158
[leetcode] Palindrome Partitioning
Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:其他好文   时间:2015-01-16 13:02:05    阅读次数:154
POJ 1159 Palindrome
PalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:54047Accepted:18672DescriptionA palindrome is a symmetrical string, that is, a string ...
分类:其他好文   时间:2015-01-15 15:33:01    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!