2.Example 1 (1)ยง
A real bug from some code for an OpenDSA exercise. You don't need to know much about the language to recognize the bug (once you spot it):
<li><var><code>O(n^2)</code></var></li> <li><var><code>O(n \log n)</code></var></li> <li><var><code>O(\log n)</code><var></li> <li><var><code>O(1)</code></var></li>