Glossary: Algorithms Beyond the Basics in Rust
Two pointers
Also written: two pointer
Keeping two indexes into the same slice, either moving inward from both ends of a sorted slice or moving the same way, to solve problems in one pass.
Glossary: Algorithms Beyond the Basics in Rust
Also written: two pointer
Keeping two indexes into the same slice, either moving inward from both ends of a sorted slice or moving the same way, to solve problems in one pass.