Longest
文章平均质量分 58
所难
这个作者很懒,什么都没留下…
展开
-
LeetCode-Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.Solution:Code:原创 2014-08-18 14:31:23 · 390 阅读 · 0 评论 -
LeetCode-Longest Palindromic Substring
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 longest palindromic substring.Solution:Code:原创 2014-09-21 02:19:55 · 382 阅读 · 0 评论 -
LeetCode-Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2],The longest consecutive elements sequence is [1, 2, 3原创 2014-07-31 13:19:20 · 305 阅读 · 0 评论