4 ms·
No, you are right. In an effort to keep it O(n), I introduced a potential bug. Abecedarius's solution is more correct.
by bullseye 17y ago
No, you are right. In an effort to keep it O(n), I introduced a potential bug. Abecedarius's solution is more correct.