"language-c++ highlighter-rouge"><span class="n">i</span></code> in the for loop, you‚Äôll skip over the element that shifted into the position you were previously in.</li>
  <li>There‚Äôs an off-by-one error here: when <code class="language-c++ highlighter-rouge"><span class="n">i</span> <span class="o">=</span> <span class="n">vec</span><span class="p">.</span><span class="n">size</span><span class="p">()</span> <span class="o">-</span> <span class="mi">1</span></code>, the indexing <code class="l