Monday, February 7, 2011

The node in the middle

There is a binary tree in which you are given three nodes x,y,z .Write a function which finds whether y lies in the path between x and z.

No comments:

Post a Comment