...

/

Kth Largest Element in a Stream

Kth Largest Element in a Stream

Try to solve the Kth Largest Element in a Stream problem.

Statement

Given an infinite stream of integers (sorted or unsorted), nums, design a class to find the kthk^{th} largest element in a stream.

Note: It is the kthk^{th} largest element in the sorted order, not the kthk^{th} ...