Heaps Flashcards
1
Q
To find smallest item what kind of heap is needed?
A
https://www.youtube.com/watch?v=hGK_5n81drs&t=731s
Max Heap
Max Heap actually ejects the maximum element from the heap when heap exceeds the capacity
2
Q
To find largest item what kind of heap is needed?
A
https://www.youtube.com/watch?v=hGK_5n81drs&t=731s
Min Heap
Min Heap actually ejects the minimum element from the heap when heap exceeds the capacity