PalindromeTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 51799 Accepted: 17834DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well ...
分类:
其他好文 时间:
2014-07-15 12:36:31
阅读次数:
200
??
Palindrome
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 51790
Accepted: 17831
Description
A palindrome is a symmetrical string, that is, a string read...
分类:
其他好文 时间:
2014-07-14 16:13:57
阅读次数:
221
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","...
分类:
其他好文 时间:
2014-07-12 23:21:30
阅读次数:
215
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 ...
分类:
其他好文 时间:
2014-07-12 20:10:54
阅读次数:
165
Palindrome
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 51631
Accepted: 17768
Description
A palindrome is a symmetrical string, that is, a string read i...
分类:
其他好文 时间:
2014-07-10 19:53:48
阅读次数:
245
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: P...
分类:
其他好文 时间:
2014-07-09 21:38:15
阅读次数:
207
Implement a function to check if a linked list is a palindrome.Reverse the second half of the list and then compare it with the first half./* Assume t...
分类:
其他好文 时间:
2014-07-09 14:25:04
阅读次数:
176
检测链表是否是palindrome.思路1:翻转并比较。思路2:迭代。思路3:递归。 public static boolean isPalindrome(LinkedListNode head) { LinkedListNode fast = head; Link...
分类:
其他好文 时间:
2014-07-08 17:15:57
阅读次数:
267
一种方法是先翻转当前数,然后把它和原数比较(略)另一种是递归方法,借用一个复制数,对原数递归,使之翻转,然后配合复制数比较package recursion;
public class Check_if_a_number_is_palindrome {
public static void main(String[] args) {
int num = 121321;
System....
分类:
其他好文 时间:
2014-07-08 17:13:55
阅读次数:
188
Palindrome
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 51518
Accepted: 17733
Description
A palindrome is a symmetrical string, that is, a string read...
分类:
其他好文 时间:
2014-07-08 10:56:08
阅读次数:
204