INORDER OF THIS EXAMPLE IS 3 4 5 6 7 9 17 20 22
TAKE NODE 9.... ITS INORDER PREDECESSOR IS 7... 7 HAS NO RIGHT CHILD...(ANSWER)
The answer should be No right child, as if there is a right child then that right child would become inorder predecessor of the node. There may or may not be a left child, because a left child would not affect inorder predecessor of the node.
64.3k questions
77.9k answers
244k comments
80.0k users