Skip to content

Glossary: Coding Interviews in Go

sort.SearchInts

Also written: slices.BinarySearch

Library functions that find the position in a sorted slice where a value is, or would be inserted. `slices.BinarySearch` also reports whether it was found.

Where the book teaches it

Related terms

Binary search