Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. ...
分类:
其他好文 时间:
2018-11-25 00:04:01
阅读次数:
150
In a given integer array nums, there is always exactly one largest element. In a given integer array nums, there is always exactly one largest element ...
分类:
其他好文 时间:
2018-11-20 13:16:32
阅读次数:
131
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. Yo ...
分类:
其他好文 时间:
2018-11-19 19:57:48
阅读次数:
167
https://leetcode.com/problems/kth-largest-element-in-a-stream/description/ ...
分类:
其他好文 时间:
2018-11-18 15:07:25
阅读次数:
100
53. Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return i ...
分类:
其他好文 时间:
2018-11-17 19:13:51
阅读次数:
196
Description Description Find K-th largest element in an array. Example In array [9,3,2,4,8], the 3rd largest element is 4. In array [1,2,3,4,5], the 1 ...
分类:
其他好文 时间:
2018-11-13 13:03:33
阅读次数:
144
【题目】 Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: 【思路】 【代码】 ...
分类:
其他好文 时间:
2018-11-13 02:45:22
阅读次数:
180
Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algor ...
分类:
其他好文 时间:
2018-11-06 20:56:00
阅读次数:
145
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: Input: [ ["1","0","1","... ...
分类:
其他好文 时间:
2018-11-06 13:25:38
阅读次数:
170
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as ...
分类:
其他好文 时间:
2018-11-05 16:24:21
阅读次数:
152