A challenging problem combining offline query processing, sorting, and a priority queue — techniques that appear in many advanced interview problems.
Enable JavaScript for the full StreamPrep guide.