On Wed, 15 Dec 2004 21:57:00 -0800, uday wrote:
[color=blue]
> can u tell me a group over data structures in either c or c++. how can
> we write a program for finding the depth of tree in c[/color]
comp.programmin g is a good place to discuss algorithms and datastructures.
You can find the depth of a binary tree easily with a recursive algorithm
depth = 1 + max(depth of left subtree, depth of right subtree)
Comment