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.
Glossary: Algorithms Beyond the Basics in Java
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.