Skip to content

Glossary: Algorithms Beyond the Basics in Java

slow and fast pointers

Two indexes moving the same way through an array: the fast one reads every item and the slow one marks the end of the tidy part, as when removing duplicate order IDs in place.

Where the book teaches it

Related terms

two pointers