Kth Largest Element in an Array (LeetCode 215)
The problem You get an integer array and an integer . Return the kth largest…
Tag
6 posts
The problem You get an integer array and an integer . Return the kth largest…
The problem Design a class . It starts with the numbers in . Each call to adds…
The problem You get a list of points on a plane and an integer . Return the k…
Eleven problems that drill heaps / top-K from Lesson 14. The one trick to burn…
When you need the biggest or smallest few — but not a full sort — a heap is the…
“Show me the 10 most-watched videos in the last hour.” “What are the top…
