码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
[LeetCode] Palindrome Linked List
Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space?  解题思路: 此题的题意为判断单向链表是否为回文。难点就是链表不能随机存取,而且不能反...
分类:其他好文   时间:2015-07-26 11:09:57    阅读次数:87
Palindrome Linked List
题目描述:Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space? 这题思路就是把单链表的前半部分或后半部分反转,然后比较。s....
分类:其他好文   时间:2015-07-25 19:40:11    阅读次数:106
POJ 3280 Cheapest Palindrome (DP)
??DescriptionKeeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an ...
分类:其他好文   时间:2015-07-25 18:10:14    阅读次数:102
leetCode(51):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-07-25 13:54:03    阅读次数:101
[leedcode 125] 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...
分类:其他好文   时间:2015-07-24 22:29:39    阅读次数:145
LeetCode 之 Longest Valid Parentheses
LeetCode 之 Valid Palindrome,本文给出详细算法思想与源码实现。...
分类:其他好文   时间:2015-07-23 10:43:50    阅读次数:129
[CareerCup] 2.7 Palindrome Linked List 回文链表
2.7 Implement a function to check if a linked list is a palindrome.LeetCode上的原题,参见我之前的博客Palindrome Linked List 回文链表。
分类:其他好文   时间:2015-07-22 22:22:58    阅读次数:108
#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-07-22 18:53:19    阅读次数:93
LeetCode 之 Valid Palindrome
LeetCode 之 Valid Palindrome,本文给出详细算法思想与源码实现。...
分类:其他好文   时间:2015-07-22 13:24:12    阅读次数:104
9.Palindrome Number (INT)
Determine whether an integer is a palindrome. Do this without extra space.class Solution {public: bool isPalindrome(int x) { if(x = 1){ ...
分类:其他好文   时间:2015-07-22 06:46:22    阅读次数:144
1561条   上一页 1 ... 91 92 93 94 95 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!