Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexSortedRotated ¶
IndexSortedRotated returns the index of a target in a sorted slice. Runs in O(log N) time and O(1) space since the input slice is sorted. Returns the index or -1 if it doesn't exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.