码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
Palindrome Numbers(LA2889)第n个回文数是?
J - Palindrome Numbers Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Practice UVALive 2889       WA了一版面,我也是醉了,就因为一个编译环境不同。。。。。。   说多了都是泪。   题...
分类:其他好文   时间:2015-06-10 14:11:31    阅读次数:131
Valid Palindrome
基础但是要掌握 int a = 'A'这种写法,以及s.trim(); s = s.toUpperCase();public class Solution { public boolean isPalindrome(String s) { if(s==null ||...
分类:其他好文   时间:2015-06-10 11:56:06    阅读次数:101
Java for LeetCode 214 Shortest Palindrome
Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f...
分类:编程语言   时间:2015-06-09 21:40:38    阅读次数:1582
[leetcode 9]Palindrome Number
1 题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindrome...
分类:其他好文   时间:2015-06-07 21:34:42    阅读次数:123
【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,...
分类:其他好文   时间:2015-06-06 21:57:41    阅读次数:122
【Palindrome Number】cpp
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes?...
分类:其他好文   时间:2015-06-06 10:27:42    阅读次数:102
Palindrome Number
class Solution {public: bool isPalindrome(int x) { long long int ans=0; int y=x; while(y) { ans=ans*10+y%10;...
分类:其他好文   时间:2015-06-06 00:08:37    阅读次数:104
LeetCode:Valid Palindrome(need update)
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...
分类:其他好文   时间:2015-06-05 21:00:56    阅读次数:109
CodeForces 486C Palindrome Transformation(贪心)
CodeForces 486C Palindrome Transformation(贪心) CodeForces 486C 题目大意:  将一个不是回文的字符串通过最少的操作使之成为回文串。  操作,左移1位,右移1位,字母+1,字母-1,这些操作到达边界时是有循环的效果的,例如位置到达最后一位往右移动,那么就到达了第一位。 解题思路:  首先需要统计一下有多少个位置是不匹...
分类:其他好文   时间:2015-06-05 12:29:47    阅读次数:192
[LeetCode] Palindrome Partitioning
The problem has a nice structure that backtracking naturally fits in. The structure is, given a starting positionidx, we search fromidxtill the end of...
分类:其他好文   时间:2015-06-04 20:49:11    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!