翻译给定一个字符串S,找出它的最大回文子字符串。
你可以假定S的最大长度为1000,
并且这里存在唯一一个最大回文子字符串。原文Given a string S, find the longest palindromic substring in S.
You may assume that the maximum length of S is 1000,
and there exists on...
分类:
其他好文 时间:
2015-09-20 14:48:24
阅读次数:
154
sample date2015-09-10 00:00:002015-09-09 00:00:00.000expect iso date, add time zone2015-09-10T00:00:00+0800function convertDate(x){ return x.substrin....
分类:
其他好文 时间:
2015-09-20 10:21:24
阅读次数:
145
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:
其他好文 时间:
2015-09-15 12:23:54
阅读次数:
165
需求:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest...
分类:
其他好文 时间:
2015-09-14 22:27:06
阅读次数:
156
Problem:Given a strings, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could ...
分类:
其他好文 时间:
2015-09-14 06:58:58
阅读次数:
198
1 class Solution { 2 public: 3 string longestPalindrome(string s) { 4 int min_len=0,max_len=1; 5 int i,j,k; 6 if(s.enpty)return ""...
分类:
其他好文 时间:
2015-09-11 10:44:30
阅读次数:
163
题目来源:https://leetcode.com/problems/longest-palindromic-substring/题意分析: 这道题目是输入一段不超过1000的字符串,输出最长的回文子字符串,输入的字符串有一个唯一的最长回文子字符串(个人觉得这个没什么用,还限制了一些输入,比如长度为...
分类:
编程语言 时间:
2015-09-08 12:20:13
阅读次数:
195
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-09-07 22:51:12
阅读次数:
227
【题目】LeetCode(5): Longest Palindromic SubstringURL: https://leetcode.com/problems/longest-palindromic-substring/【描述】Given a stringS, find the longest p...
分类:
其他好文 时间:
2015-09-07 07:02:02
阅读次数:
339
Description:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one uniqu...
分类:
其他好文 时间:
2015-09-02 15:57:57
阅读次数:
218