Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinarySearch ¶
func BinarySearch[T comparable](arr []T, target T, cmp func(T, T) bool) int
BinarySearch searches for the target in the array using binary search
func BinarySearchAuto ¶
BinarySearchAuto is a shorthand for BinarySearch that uses the default comparator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.