码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
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: Panama" is a palindrome. "race a car" is not a ...
分类:其他好文   时间:2015-01-15 09:26:10    阅读次数:160
[LeetCode][Python]Palindrome Number
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/palindrome-number/Determine whether an integer is a palin...
分类:编程语言   时间:2015-01-14 06:14:41    阅读次数:177
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? (ie, -1) If you are thinking of convertin...
分类:其他好文   时间:2015-01-12 00:25:55    阅读次数:197
LeetCode--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. class Solution { public: bool isPalindrome(int x) { if(x < 0) return false; int org = ...
分类:其他好文   时间:2015-01-08 18:12:09    阅读次数:124
[LeetCode]131 Palindrome Partitioning
https://oj.leetcode.com/problems/palindrome-partitioning/http://blog.csdn.net/linhuanmars/article/details/22777711publicclassSolution{ publicList<List<String>>partition(Strings){ //NP List<List<String>>result=newArrayList<>()..
分类:其他好文   时间:2015-01-08 15:30:19    阅读次数:111
Leetcode: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-01-08 13:09:06    阅读次数:175
[LeetCode]125 Valid Palindrome
https://oj.leetcode.com/problems/valid-palindrome/http://blog.csdn.net/linhuanmars/article/details/22775045publicclassSolution{ publicbooleanisPalindrome(Strings){ { if(s==null) returnfalse; if(s.isEmpty()) returntrue; char[]chars=s.toLowerCase().toCharAr..
分类:其他好文   时间:2015-01-07 19:15:41    阅读次数:149
Java-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"]...
分类:编程语言   时间:2015-01-07 18:54:40    阅读次数:134
[Leetcode] 9 - Palindrome Number
原题链接: https://oj.leetcode.com/problems/palindrome-number/ 非常非常简单的一道题。。。 class Solution { public: bool isPalindrome(int x) { if (x < 0) return false; int ori = x;...
分类:其他好文   时间:2015-01-07 16:57:31    阅读次数:114
【leetcode】 Palindrome Partitioniong (middle) (*^__^*)
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2015-01-06 11:37:18    阅读次数:91
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!