ight));<br />}</pre>
<p><span style="font-size: 10pt;"><strong>Highlight for solution to Problem #4:</strong> <span style="color: #ced4d9; background-color: #ced4d9;">This code will segfault if we pass it an empty tree. Recall that the arrow operator (-&gt;) dereferences a struct pointer. So, if <em>root</em> is <em>nullptr</em>, we segfault right away. Please always be on the lookout for recursive binary tree functions that apply the arrow operator to&nbsp;<em>root</em> before checking whether it's <em>nul