码迷,mamicode.com
首页 >  
搜索关键字:largest    ( 1413个结果
【POJ2985】【Treap + 并查集】The k-th Largest Group
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
[LeetCode] Maximal Rectangle 最大矩形
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
Lintcode: Kth largest Element
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
[LeetCode] Largest Rectangle in Histogram 直方图中最大的矩形
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
LeetCode 笔记26 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...
分类:其他好文   时间:2015-03-08 21:30:59    阅读次数:155
Maximum Subarray -- leetcode
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
LeetCode --- 53. Maximum Subarray
题目链接: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
1054. The Dominant Color
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
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!