• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

question about binary tree

How can I find the first successor of a specified node in in-order traversal? I know the in-order traversal algorithm. But how can I find just the next successor?
0
wgan
Asked:
wgan
1 Solution
 
akshayxxCommented:
this is possible .. when u have pointer to parent node also ..
other wise u'll have to take out the inorder traversal and then look for the node and take the next node to it..
0
 
CleanupPingCommented:
wgan:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now