Two Pointers, One Loop