码迷,mamicode.com
首页 >  
搜索关键字:palindrome partition    ( 4210个结果
LeetCode: Palindrome Partitioning II 解题报告
Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for ...
分类:其他好文   时间:2014-12-06 22:52:25    阅读次数:291
leetcode. Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-12-06 12:47:15    阅读次数:152
[leetcode]Palindrome Number
问题描述: Determine whether an integer is a palindrome. Do this without extra space. 基本思路: 考虑到回文的特点,根据给定数字获得与给定数字低位高位反序的数字。如果是回文数,则两数想等;否则不等。(即使反序数字溢出,也可的到正确结果) 代码: bool isPalindrome(int x) { //...
分类:其他好文   时间:2014-12-04 20:04:19    阅读次数:159
LeetCode: Partition List 解题报告
Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should...
分类:其他好文   时间:2014-12-04 19:57:46    阅读次数:204
UVA 10739 String to Palindrome(DP)
In this problem you are asked to convert a string into a palindrome with minimum number of operations. The operations are described below:   Here you’d have the ultimate freedom. You are allowed to:...
分类:其他好文   时间:2014-12-04 01:03:49    阅读次数:138
leetcode[125] Valid Palindrome
判断一个字符串是不是回文,忽略其中的非数字和非字母,例如符号和空格不考虑。For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"isnota palindrome.Note:Have you consider ...
分类:其他好文   时间:2014-12-04 00:53:19    阅读次数:227
[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-12-03 23:34:37    阅读次数:396
Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-12-03 22:43:18    阅读次数:153
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...
分类:其他好文   时间:2014-12-03 18:57:09    阅读次数:143
分布式基础知识汇集
一.CAP数据一致性(C),等同于所有节点访问同一份最新的数据副本;对数据更新具备高可用性(A);能容忍网络分区(P)。概念: 必须注意的是,P:Partition Tolerance 指的是 The system works well despite physical network partit...
分类:其他好文   时间:2014-12-03 16:54:03    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!