Last Stone Weight (LeetCode 1046)
The problem You get a list of stone weights. Each turn, take the two heaviest…
Tag
3 posts
The problem You get a list of stone weights. Each turn, take the two heaviest…
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…