Skip to content
Varma Penmetsa edited this page Jan 23, 2022 · 1 revision

Applications of Heap

  1. Kth Largest Element in an Array
  2. Top K Frequent Elements
  3. Kth Largest Element in a Stream
  4. Last Stone Weight
  5. The K Weakest Rows in a Matrix
  6. Kth Smallest Element in a Sorted Matrix
  7. Meeting Rooms II
  8. K Closest Points to Origin
  9. Minimum Cost to Connect Sticks
  10. Furthest Building You Can Reach
  11. Find Median from Data Stream

Clone this wiki locally