码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
poj 1159 Palindrome
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
POJ1159
?? 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
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, given s = "aab", Return [ ["aa","...
分类:其他好文   时间:2014-07-12 23:21:30    阅读次数:215
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 ...
分类:其他好文   时间:2014-07-12 20:10:54    阅读次数:165
poj 1156 Palindrome
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
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: P...
分类:其他好文   时间:2014-07-09 21:38:15    阅读次数:207
CTCI 2.7
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
Cracking the Coding Interview Q2.7
检测链表是否是palindrome.思路1:翻转并比较。思路2:迭代。思路3:递归。 public static boolean isPalindrome(LinkedListNode head) { LinkedListNode fast = head; Link...
分类:其他好文   时间:2014-07-08 17:15:57    阅读次数:267
判断一个整数是否为回文数 Check if a number is palindrome
一种方法是先翻转当前数,然后把它和原数比较(略)另一种是递归方法,借用一个复制数,对原数递归,使之翻转,然后配合复制数比较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
POJ 1159 Palindrome
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!