Kth Largest Element in a Stream
Problem Statement:-
Design a class to find the k<sup>th</sup> largest element in a stream. Note that it is the k<sup>th</sup> largest element in the sorted order, not the k<sup>th</sup> distinct element.
Implement KthLargest class:
KthLargest(int k,...
techie-sagar.hashnode.dev2 min read