703. Kth Largest Element in a Stream
Problem statement
Design a class to find the k-th largest element in a stream. Note that it is the k-th largest element in the sorted order, not the k-th distinct element.
Implement KthLargest class:
KthLargest(int k, int[] nums) Initializes the obj...
leetsolve.com3 min read