
LintCode
文章平均质量分 79
hyt502
这个作者很懒,什么都没留下…
展开
-
LintCode : 最长回文子字符串 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.根据题意,找到给定字符串中最长的回文原创 2015-04-26 15:33:08 · 904 阅读 · 0 评论 -
LintCode : 第一个丢失的正整数 First Missing Positive
题目链接:http://www.lintcode.com/en/problem/first-missing-positive/Given an unsorted integer array, find the first missing positive integer.ExampleGiven [1,2,0] return 3, and [3,4,-1,1原创 2015-06-13 21:39:49 · 454 阅读 · 0 评论 -
LintCode : 最接近零的子数组和 Subarray Sum Closest
题目链接:http://www.lintcode.com/en/problem/subarray-sum-closest/Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number.Ex原创 2016-04-26 11:56:49 · 651 阅读 · 0 评论