Which statement(s) is/are correct regarding node N deletion in binary search…

2021

Which statement(s) is/are correct regarding node N deletion in binary search tree?

I. If node N has no children then just replace location of N in the parent node by the null pointer.

II. If node N has two children, then replace it by preorder successor.

Answer: A. Only I

  1. A.

    Only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 611 students.

Show answer & explanation

Correct answer: A

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…