Two Pointers
A coordination technique that moves two indices through data to shrink search space.
Two-pointer problems work when relative movement between two positions reveals structure faster than a full nested search.
A coordination technique that moves two indices through data to shrink search space.