The Hundred Slowest Requests
You have 5,000,000 request records in memory and need the 100 with the highest latency, printed in descending latency order. Sorting the whole array works but is the baseline you are trying to beat.
More than one option is correct. Which approaches are both correct and asymptotically cheaper than sorting all 5,000,000 records?
Sign in to answer questions and track your progress
Sign In