digitalrahul
BAN USER
Comments (3)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
@kushalbafna, you still have to assign parent's right pointer to null in the else part..that's what Tanmay had mentioned..
- digitalrahul August 24, 2013Comment hidden because of low score. Click to expand.
0
of 0 vote
I think it's a BST....take M as the left child of Q and Y as the right of the Q....P as right of M....same preorder traversal..
K
/ \
G Q
/ \ / \
C H M Y
/ \ \
B D P
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
- digitalrahul August 24, 2013