Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinearSearch ¶
func LinearSearch[T comparable](arr []T, target T) (int, error)
find minimum index i such that arr[i] == target
func LowerBound ¶
use binary search to find the first element that is not less than target
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.