Using invariants in Binary Search code | Hacker News Reader