="code-chonk">bstDelete()</span>.</p>
<p>4. What's wrong with the following function, whose goal is to find the height of a binary tree?</p>
<pre style="margin-left: 30px; font-family: monospace; font-size: 11px; width: 600px; background-color: #fff9e7;"><span style="color: #236fa1;"><em>// This function returns the height of a binary tree based on the observation that<br />// a tree's height is 1 plus the height of the root's left subtree or right subtree<br />// -- whichever one is taller.<br />//<br />//