Glossary: Algorithms Beyond the Basics in C++
Two pointers
Also written: two pointer
A pattern with two indexes moving through one list, either from both ends of a sorted list or in the same direction.
Glossary: Algorithms Beyond the Basics in C++
Also written: two pointer
A pattern with two indexes moving through one list, either from both ends of a sorted list or in the same direction.