left);<br />         bstDelete(root-&gt;left, root-&gt;data);<br />      }<br />   }<br />}</pre>
<p>To enable the <span class="code-chonk">bstDelete()</span> function, I wrote this cheeky <span class="code-chonk">bstFindMax()</span> function that doesn't bother checking whether <span class="code-chonk">root</span> is null initially. For the purposes of deletion, it doesn't have to. We only ever call this function from <span class="code-chonk">bstDelete()</span> if the node we're trying to delete has two ch