Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous s...
分类:
编程语言 时间:
2016-03-31 17:02:53
阅读次数:
206
1. Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the h ...
分类:
其他好文 时间:
2016-03-30 22:07:01
阅读次数:
145
Given an array of integers, find two non-overlapping subarrays which have the largest sum.The number in each subarray should be contiguous.Return the ...
分类:
其他好文 时间:
2016-03-30 14:34:53
阅读次数:
173
Description A robot has to patrol around a rectangular area which is in a form of mxn grid (m rows and n columns). The rows are labeled from 1 to m. T ...
分类:
其他好文 时间:
2016-03-30 09:57:30
阅读次数:
191
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example For example, given the follo ...
分类:
其他好文 时间:
2016-03-30 08:16:24
阅读次数:
142
Sumsets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9997 Accepted: 2736 Description Given S, a set of integers, find the largest d such ...
分类:
其他好文 时间:
2016-03-28 21:31:37
阅读次数:
213
给出平面上一些点的坐标,统计由这些点可以组成多少个正方形。注意:正方形的边不一定平行于坐标轴。 Given S, a set of integers, find the largest d such that a + b + c = d where a, b, c, and d are distin ...
分类:
其他好文 时间:
2016-03-28 08:47:46
阅读次数:
281
Maximum Subarray Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example ...
分类:
编程语言 时间:
2016-03-27 23:55:18
阅读次数:
252
Sumsets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9983 Accepted: 2731 Description Given S, a set of integers, find the largest d such ...
分类:
其他好文 时间:
2016-03-27 17:47:33
阅读次数:
183
The k-th Largest Group Time Limit: 2000MS Memory Limit: 131072K Total Submissions: 8353 Accepted: 2712 Description Newman likes playing with cats. He ...
分类:
编程语言 时间:
2016-03-27 17:45:12
阅读次数:
245