DescriptionNewman likes playing with cats. He possesses lots of cats in his home. Because the number of cats is really huge, Newman wants to group som...
分类:
其他好文 时间:
2015-03-10 15:17:35
阅读次数:
210
MAX-HEAPIFY(A, i) left =left(i) right=right(i) if(leftA[i]) then largest=left else largest=i if(rightA[largest]) t...
分类:
编程语言 时间:
2015-03-09 12:27:45
阅读次数:
144
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.此题是之前那道的Largest Rectangle in Hist...
分类:
其他好文 时间:
2015-03-09 07:01:30
阅读次数:
140
Find K-th largest element in an array.NoteYou can swap elements in the arrayExampleIn array [9,3,2,4,8], the 3rd largest element is 4In array [1,2,3,4...
分类:
其他好文 时间:
2015-03-09 07:01:05
阅读次数:
181
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2015-03-09 07:00:12
阅读次数:
178
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...
分类:
其他好文 时间:
2015-03-08 21:30:59
阅读次数:
155
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2015-03-08 11:49:56
阅读次数:
140
题目链接:Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous s...
分类:
其他好文 时间:
2015-03-07 11:38:51
阅读次数:
198
Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the d...
分类:
其他好文 时间:
2015-03-06 15:53:34
阅读次数:
137
Maximum Subarray问题:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the arra...
分类:
其他好文 时间:
2015-03-05 16:10:15
阅读次数:
129