erm</span><span class="p">));</span>
<span class="p">}</span>
</code></pre></div></div>

<div class="language-c++ good col-sm-6 highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// avoid recompute</span>
<span class="kt">int</span> <span class="n">index</span> <span class="o">=</span> <span class="n">reallySlowSearch</span><span class="p">(</span><span class="n">term</span><span class="p">);</span>
<span class="k">if</span> <span class="p">(</span><span class="n">index<