DSA Key Problems

Kth Largest Element in a Stream

Design a structure initialized with an integer k and an initial array of values. Each later addition must return the kth largest value among the initial values and everything added so far.