码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
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? 1、朴素方法 /** * Definition for singly...
分类:其他好文   时间:2015-09-27 16:14:32    阅读次数:191
LeetCode:Palindrome Number - 回文数
1、题目名称 Palindrome Number(回文数) 2、题目地址 https://leetcode.com/problems/palindrome-number 3、题目内容 英文:Determine whether an integer is a palindrome. Do this without extra space. 中文...
分类:其他好文   时间:2015-09-24 22:54:21    阅读次数:148
**Palindrome Partitioning II
题目:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ...
分类:其他好文   时间:2015-09-24 08:14:17    阅读次数:277
DP:Cheapest Palindrome(POJ 3280)
价值最小回文字符串 题目大意:给你一个字符串,可以删除可以添加,并且每一次对一个字母的操作都带一个权,问你转成回文串最优操作数。 如果这一题我这样告诉你,你毫无疑问知道这一题是LD(Levenshtien Distance 编辑距离),但是上...
分类:其他好文   时间:2015-09-23 19:07:16    阅读次数:148
Leetcode Palindrome Permutation
Given a string, determine if a permutation of the string could form a palindrome.For example,"code"-> False,"aab"-> True,"carerac"-> True.Hint:Conside...
分类:其他好文   时间:2015-09-23 01:03:45    阅读次数:187
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...
分类:其他好文   时间:2015-09-23 00:55:43    阅读次数:131
LeetCode: Palindrome Partitioning [131]
【称号】Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example,...
分类:其他好文   时间:2015-09-21 20:56:47    阅读次数:114
LeetCode(125)题解--Valid Palindrome
https://leetcode.com/problems/valid-palindrome/题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignori...
分类:其他好文   时间:2015-09-19 18:09:40    阅读次数:120
Leetcode 之 Longest Palindrome
#include #include int MAX_SIZE = 100000;int gen_odd_str(const char * str, char * odd_str) { int i = 0; for (i = 0; *str != 0 ; ++i, ++str) { ...
分类:其他好文   时间:2015-09-18 13:46:56    阅读次数:108
HDU 5062 Beautiful Palindrome Number(数学)
主题链接:http://acm.hdu.edu.cn/showproblem.php?pid=5062Problem DescriptionA positive integer x can represent as(a1a2…akak…a2a1)10or(a1a2…ak?1akak?1…a2a1)1...
分类:其他好文   时间:2015-09-18 13:46:13    阅读次数:143
1561条   上一页 1 ... 80 81 82 83 84 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!