码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
1159--Palindrome(dp:回文串变形2)
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
LeetCode 009 Palindrome Number - Java
Determine whether an integer is a palindrome. Do this without extra space. 定位:简单题 题目要求判断给出的数字是否是回文数,并且要求不适用额外空间。我们不能使用其他数据类型过度处理,那从个位开始计算,每提高计算一位将原先的值 ...
分类:编程语言   时间:2017-06-17 17:15:32    阅读次数:166
234. Palindrome Linked List
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
leetcode dfs Palindrome Partitioning
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
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
[leetcode-131-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 exampl ...
分类:其他好文   时间:2017-06-14 18:14:16    阅读次数:120
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: Pan ...
分类:其他好文   时间:2017-06-13 14:39:56    阅读次数:213
[leetcode-409-Longest Palindrome]
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
Leetcode:Palindrome Number
题目大意是提供一个32位整数,判断这个数的十进制字符串形式是否是回文。所谓的回文就是字符串的逆序形式与正序形式完全一致。比如123不等于321不符合条件,121等于121符合条件,当然-1不等于1-也是不符合条件的。题目还限制了允许使用的存储空间。 可以简单地利用另外一个32位整数m记录输入整数n的 ...
分类:其他好文   时间:2017-06-11 14:20:00    阅读次数:167
1561条   上一页 1 ... 46 47 48 49 50 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!