Technology Made Simple • 79 implied HN points • 29 Sep 22
- Problem involves finding the kth largest element in a stream, not the kth distinct element.
- The 'KthLargest' class has methods to initialize the object with 'k' and a stream of integers, and to add integers to the stream and return the kth largest element.
- Constraints include bounds on 'k', the length of the array, and the values in the array, with at most 10^4 calls to the 'add' method.