Palindrome Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 53431 Accepted: 18454 Description A palindrome is a symmetrical string, that is, ...
分类:
其他好文 时间:
2017-06-21 17:33:17
阅读次数:
256
Determine whether an integer is a palindrome. Do this without extra space. 定位:简单题 题目要求判断给出的数字是否是回文数,并且要求不适用额外空间。我们不能使用其他数据类型过度处理,那从个位开始计算,每提高计算一位将原先的值 ...
分类:
编程语言 时间:
2017-06-17 17:15:32
阅读次数:
166
Problem statement 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? Solution This i ...
分类:
其他好文 时间:
2017-06-15 12:52:42
阅读次数:
150
Palindrome Partitioning Total Accepted: 21056 Total Submissions: 81036My Submissions Given a string s, partition s such that every substring of the pa ...
分类:
其他好文 时间:
2017-06-15 10:36:38
阅读次数:
184
Valid Palindrome Total Accepted: 22728 Total Submissions: 99271My Submissions Question Solution Given a string, determine if it is a palindrome, consi ...
分类:
其他好文 时间:
2017-06-15 10:28:49
阅读次数:
108
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For exampl ...
分类:
其他好文 时间:
2017-06-14 18:14:16
阅读次数:
120
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan ...
分类:
其他好文 时间:
2017-06-13 14:39:56
阅读次数:
213
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2017-06-11 17:28:28
阅读次数:
164
题目大意是提供一个32位整数,判断这个数的十进制字符串形式是否是回文。所谓的回文就是字符串的逆序形式与正序形式完全一致。比如123不等于321不符合条件,121等于121符合条件,当然-1不等于1-也是不符合条件的。题目还限制了允许使用的存储空间。 可以简单地利用另外一个32位整数m记录输入整数n的 ...
分类:
其他好文 时间:
2017-06-11 14:20:00
阅读次数:
167