(function(){ window.OpenPopKa = true;}())

The height of a binary tree is the length of the path to the deepest node. An empty tree has a height of 0, a tree with one node has a height of 1, and so on. Write a recursive function to find the height of the binary tree pointed at by "root".

[ editor.getValue() ]
if (guess[0] != initEditor) { console.log(guess[0]); window.codeValue = guess[0]; window.progexType= "BTRecurTutor"; window.summexName= "BTdepthPROG"; } else { return ""; }

If the tree is null, return 0.

Otherwise, simply return 1 + the larger of the heights of the children.