Source File
search.go
Belonging Package
sort
package sort
, := 0,
for < {
if !() {
= + 1 // preserves f(i-1) == false
} else {
= // preserves f(j) == true
}
return
}
func ( IntSlice) ( int) int { return SearchInts(, ) }
func ( Float64Slice) ( float64) int { return SearchFloat64s(, ) }
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |