Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

begineer i n prolog

Status
Not open for further replies.

hermela

Programmer
Mar 30, 2004
1
CA
can anyone help me how to find the height of a binary tree?

thank you in advance!
 
A recursive function which compares the height of the left and right sub-trees
The return result being the max of those two results, plus 1

--
 
Just to point it out: this is the C forum.

That question is general enough that you can get it answered here, but when you have more Prolog-specific questions, you'll probably get a better response in the Prolog forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top