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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly