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-03-04 09:44:51
阅读次数:
122
Point: not necessarily contigous max sub array, at least one element should be selected:def maxSubarrCont(arr, n): ret = arr[0] curr = arr[0] ...
分类:
其他好文 时间:
2015-03-03 16:34:35
阅读次数:
127
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is t...
分类:
编程语言 时间:
2015-03-03 09:59:06
阅读次数:
165
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine ...
分类:
编程语言 时间:
2015-03-03 09:58:55
阅读次数:
134
Maximum repetition substringTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7578Accepted: 2281DescriptionThe repetition number of a string is...
分类:
编程语言 时间:
2015-03-03 06:18:08
阅读次数:
327
leetcode 104.Maximum Depth of Binary Tree
分类:
其他好文 时间:
2015-03-02 18:31:30
阅读次数:
114
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet...
分类:
编程语言 时间:
2015-03-02 00:55:58
阅读次数:
237
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
其他好文 时间:
2015-03-01 13:13:19
阅读次数:
119
前期对分片分段概念有点不清晰,看到一篇好文,mark本文转自:http://blog.csdn.net/keyouan2008/archive/2010/08/27/5843388.aspx1,MTU(Maximum Transmission Unit,MTU),最大传输单元(1)以太网和802.3...
分类:
其他好文 时间:
2015-03-01 13:07:32
阅读次数:
169
题目Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if you a...
分类:
其他好文 时间:
2015-02-28 23:05:45
阅读次数:
276