Skip to content

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.

Where the book teaches it

Related terms

Slow and fast pointersSliding windowSlice