Question: Consider a node X in a binary tree T . Let Y be the in - order successor of X . This means that in
Consider a node X in a binary tree T Let Y be the inorder successor of X This means that in the inorder traversal of T nodes X and Y appear one after the other. We know that X has two children or child subtrees Which of the following statements is true about the inorder successor Y of node X
point
Y is the leftmost node in the right subtree of X
Y is parent of X
Y is the rightmost node in the right subtree of X
Y is the leftmost node in the left subtree of X
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
