ParentFull threadbullseye·No, you are right. In an effort to keep it O(n), I introduced a potential bug. Abecedarius's solution is more correct.View on HN