Skip to main content
Loading page content
Algo
Flow
Visualizers
Mental Math
Dashboard
Log in
Sign up
Back to Visualizer
Question 1 of 5
Heap Operations
• Extract Max
In a max-heap, what does the 'Extract Max' operation do?
A
Removes and returns the smallest element
B
Removes and returns the largest element (the root), then restores the heap property
C
Adds a new maximum element
D
Deletes the entire heap