码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
leetcode 9 -- Palindrome Number
题目 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to...
分类:其他好文   时间:2015-06-18 17:22:44    阅读次数:87
【算法】leetcode之 Palindrome Partitioning I&II(转载)
1Palindrome Partitioning问题来源:Palindrome Partitioning该问题简单来说就是给定一个字符串,将字符串分成多个部分,满足每一部分都是回文串,请输出所有可能的情况。 该问题的难度比较大,很可能第一次遇到没有思路,这很正常。下面我们一点点分析,逐步理清思路。先...
分类:编程语言   时间:2015-06-17 23:04:56    阅读次数:208
LeetCode之“字符串”:Valid Palindrome
题目链接 题目要求: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a ...
分类:其他好文   时间:2015-06-14 16:24:27    阅读次数:115
Leetcode[9]-Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.Some hints: Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to string, note the...
分类:其他好文   时间:2015-06-13 09:48:14    阅读次数:101
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? (i...
分类:其他好文   时间:2015-06-12 14:37:29    阅读次数:107
No.9 Palindrome Number
No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ...
分类:其他好文   时间:2015-06-11 16:16:15    阅读次数:113
Leetcode[20]-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 palindr...
分类:其他好文   时间:2015-06-11 14:38:52    阅读次数:117
天题系列: Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2015-06-11 14:20:49    阅读次数:93
Palindrome Partitioning
正常dfspublic class Solution { public ArrayList> partition(String s) { ArrayList> res = new ArrayList>(); if(s==null||s.length()==0) re...
分类:其他好文   时间:2015-06-11 12:27:43    阅读次数:98
LeetCode【9】. Palindrome Number --java的实现
Palindrome Number   Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of conver...
分类:编程语言   时间:2015-06-11 00:14:55    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!