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
• Heapify
What does the 'heapify' operation do to a subtree rooted at a given node?
A
Sorts the entire array
B
Adjusts the subtree so that it satisfies the heap property, assuming its children are already valid heaps
C
Deletes the subtree
D
Converts the subtree into a BST