Find puberessor of -5000
Answers
Answered by
1
Answer:
I hope it is help for you
Step-by-step explanation:
To find which ancestors is the predecessor, we can move up the tree towards root until we encounter a node which is right child of it's parent. If any such node is found, the in-order predecessor is its parent else in-order predecessor do not exists for the node. We can recursively check above conditions
Answered by
1
Answer:
-5001 is the predecessor of -5000
Similar questions