Heap Algorithm Summaries
Here are the summaries for the Heap algorithms in Leetcode’s Blind 75. A Binary Heap is a type of Binary Tree, specifically a complete Binary Tree (where all levels are filled except the lowest level), which is used to store data efficiently to get the max or min element based on its type. Merge K Sorted Lists This was already included in the List topic. Top K Frequent Elements Given an integer array nums of length n and an integer k, return the k most frequent elements. ...