est case and avoid memory leaks.</p>
  </li>
  <li>
    <p><code class="language-c++ highlighter-rouge"><span class="n">ListNode</span><span class="o">*</span> <span class="n">createList</span><span class="p">(</span><span class="n">Vector</span><span class="o">&lt;</span><span class="kt">int</span><span class="o">&gt;</span> <span class="n">values</span><span class="p">)</span></code></p>

    <p>This utility function is given a vector of values and constructs an equivalent linked list containing the same 