Question:

Which of the following sequences when stored in an array at locations A[1],..., A[10] forms a max-heap?

Updated On: Nov 24, 2023
  • 23, 17, 10, 6, 13, 14, 1, 5, 7, 12
  • 23, 17, 14, 7, 13, 10, 1, 5, 6, 12
  • 23, 17, 14, 6, 13, 10, 1, 5, 7, 15
  • 23, 14, 17, 1, 10, 13, 16, 12, 7, 5
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The correct option is (B)
Was this answer helpful?
0
1