Skip to content

Glossary: Data Structures and Algorithms in Go

Two-index technique

Also written: two indexes, two pointers, left and right indexes

Moving two indexes toward each other from both ends of a slice, as in reversing in place. It is O(n) time and O(1) extra space.

Where the book teaches it

Related terms

In placeBinary search