码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
LeetCode --- Valid Palindrome
题目链接判断字符串是否为回文串。附上代码: 1 class Solution { 2 public: 3 bool isPalindrome(string s) { 4 if (s.empty()) return true; // consider empty string ...
分类:其他好文   时间:2014-05-30 21:48:12    阅读次数:347
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-05-30 16:24:31    阅读次数:222
[leetcode]Palindrome Partitioning @ Python
原题地址:https://oj.leetcode.com/problems/palindrome-partitioning/题意:Given a strings, partitionssuch that every substring of the partition is a palindrome...
分类:编程语言   时间:2014-05-29 18:26:15    阅读次数:334
Palindrome Number (回文数)
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:其他好文   时间:2014-05-27 23:44:17    阅读次数:459
LeetCode: palindromes 题解
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:其他好文   时间:2014-05-26 18:07:52    阅读次数:217
LightOJ-1205 - Palindromic Numbers
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:其他好文   时间:2014-05-25 07:41:08    阅读次数:253
LeetCode——Palindrome Partition
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 = "...
分类:其他好文   时间:2014-05-24 14:29:45    阅读次数:222
[LeetCode] [Palindrome Number 2012-01-04]
Determine whether an integer is a palindrome. Do this without extra space.if use recursive, like check the first dig and last dig, then remove them, c...
分类:其他好文   时间:2014-05-23 02:45:15    阅读次数:230
欧拉项目004:寻找最大的回文数
Problem 4: Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest pal...
分类:其他好文   时间:2014-05-22 18:48:46    阅读次数:355
poj 1159 Palindrome
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 50914   Accepted: 17537 Description A palindrome is a symmetrical string, that is, a string read...
分类:其他好文   时间:2014-05-21 06:50:05    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!