How Tall is the Tree?
Collapse Content
Show Content
Can you find the height of a Binary Tree? The height is the number of Nodes from the Root to the lowest Leaf. The Tree does not need to be balanced.
For example, in the tree below, the height is 4:
As discussed in trees, You will given a Tree stored in a list. Find and print the height of the Tree.
Challenge
Print the height of each Tree on its own line.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.