an><span class="p">}</span><span class="w"> </span>
<span class="p">}</span>
</pre></div>
</div>
<ul class="simple">
<li><p>finding a loop is tricky, use visited</p></li>
<li><p>reverse a linked list</p>
<ul>
<li><p>requires 3 ptrs (one temporary to store next)</p></li>
<li><p>return pointer to new end</p></li>
</ul>
</li>
</ul>
</section>
<section id="stack">
<h3><span class="section-number">6.4.1.3. </span>stack<a class="headerlink" href="#stack" title="Link to this heading">#</a></h3>
<div class="highlig