Thursday, August 11, 2011

subtrees

Find if any subtree of a binary tree has sum equal to given value. Subtree may or may not start from root.


Hint: solve the one with substree starting from root first.

No comments:

Post a Comment