Heap Flashcards
1
Q
Data structure
A
Implemented in Array or Tree
sift up/Down - add/remove elements
2
Q
Types
A
Min Heap
Max Heap
3
Q
Problems
A
Top K elements
Median of sorted list
Merge sorted List
Data structure
Implemented in Array or Tree
sift up/Down - add/remove elements
Types
Min Heap
Max Heap
Problems
Top K elements
Median of sorted list
Merge sorted List