Glossary: Algorithms Beyond the Basics in Go
Slow and fast pointers
Also written: slow pointer, fast pointer
Two indexes moving the same way: `fast` reads every item and `slow` marks the end of the tidy part. They remove duplicates in place.
Glossary: Algorithms Beyond the Basics in Go
Also written: slow pointer, fast pointer
Two indexes moving the same way: `fast` reads every item and `slow` marks the end of the tidy part. They remove duplicates in place.