Kth number
Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5425 Accepted Submission(s): 1760
Problem Description
Give you a seq...
分类:
其他好文 时间:
2014-11-12 17:51:37
阅读次数:
200
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 histogram.
Above is a histogram where wid...
分类:
其他好文 时间:
2014-11-11 22:52:05
阅读次数:
247
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...
分类:
其他好文 时间:
2014-11-11 20:50:41
阅读次数:
188
【题目】
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 subarray [2,3] has th...
分类:
其他好文 时间:
2014-11-11 19:18:19
阅读次数:
217
Maximum Product SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given...
分类:
其他好文 时间:
2014-11-11 18:25:20
阅读次数:
181
1.(原文)问题描述Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,...
分类:
其他好文 时间:
2014-11-11 15:51:54
阅读次数:
145
我是按难度往下刷的,第二道是帕斯卡三角形二。简单易懂,题目如下:Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3, Return [1,3,3,1].Note: Could y...
分类:
其他好文 时间:
2014-11-11 01:58:05
阅读次数:
242
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.Solution: 1 public class Solution...
分类:
其他好文 时间:
2014-11-10 06:32:28
阅读次数:
202
[Description] Given two different strings, find the largest successive common substring.e.g. str1[]="qwertyuiopasdfgh"; str2[]="jhdfgqwertyudfxcv"; .....
分类:
其他好文 时间:
2014-11-09 12:31:30
阅读次数:
203
We have 8 numbers. Sort as ascend.1st loop, we compare 7 times (for 8 numbers), and found the largest 8.2nd loop, we compare 6 times (for 7 numbers), ...
分类:
其他好文 时间:
2014-11-09 12:24:42
阅读次数:
184