Groups
Category
Two pointers is a pattern where two indices move through a sequence in a coordinated, usually monotonic way to avoid unnecessary work.
Binary search quickly finds targets or boundaries in sorted or monotonic data by halving the search interval each step.