Kth Largest Element in a Stream
Try to solve the Kth Largest Element in a Stream problem.
We'll cover the following...
Statement
Given an infinite stream of integers (sorted or unsorted), nums
, design a class to find the largest element in a stream.
Note: It is the largest element in the sorted order, not the ...