In a max-heap, where is the largest element stored?
- A At the root
- B At the last leaf
- C At the leftmost leaf
- D In the middle of the array
Explanation
In a max-heap every parent is greater than or equal to its children, so the largest element is always at the root.