回文
文章平均质量分 83
离丶殇
这个作者很懒,什么都没留下…
展开
-
Longest Palindromic Substring
一. Longest Palindromic SubstringGiven a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example: Input: “babad” Output: “bab” Note: “a原创 2017-03-13 21:55:23 · 156 阅读 · 0 评论 -
Palindrome Number
一. Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Difficulty:EasyTIME:6MIN解法判断一个数字是否是回文,如果是字符串,当然很简单,因为知道字符串的长度,也能访问字符串的每一个字符。但是如果是数字就不太一样了,因为不能立刻得到数字的位数以及分别原创 2017-03-13 21:15:07 · 177 阅读 · 0 评论 -
Longest Palindromic Subsequence
一. Longest Palindromic SubsequenceYou are given two non-empty linked lists representing two non-negative Given a string s, find the longest palindromic subsequence’s length in s. You may assume that原创 2017-03-14 22:36:33 · 325 阅读 · 0 评论