×

Multiple-Choice Questions

Which of the following replaces the root in deletion operation of min heap?

20. Which of the following replaces the root in deletion operation of min heap?

  1. Next value of left subtree
  2. Next value of right subtree
  3. Any random value of tree
  4. Last element of last level

Answer

The correct answer is: D) Last element of last level

Explanation

Root level is always replaced by the last element of the last level regardless of max heap or min heap deletion operation.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.