Anton Kaliaev
0732526465
use more relaxing < and >= ops instead of !=
...
an example of Search from godocs:
```
package main
import (
"fmt"
"sort"
)
func main() {
a := []int{1, 3, 6, 10, 15, 21, 28, 36, 45, 55}
x := 6
i := sort.Search(len(a), func(i int) bool { return a[i] >= x })
if i < len(a) && a[i] == x {
fmt.Printf("found %d at index %d in %v\n", x, i, a)
} else {
fmt.Printf("%d not found in %v\n", x, a)
}
}
```
2018-04-04 10:42:35 +02:00
..
2018-04-02 10:21:17 +02:00
2017-09-22 12:00:37 -04:00
2018-04-02 10:21:17 +02:00
2018-04-03 22:43:38 +03:00
2018-03-02 01:28:38 -05:00
2017-10-30 00:32:22 -05:00
2018-02-05 23:34:15 -08:00
2018-04-03 15:53:13 +02:00
2018-04-03 15:53:13 +02:00
2017-12-28 23:15:54 -05:00
2018-03-02 01:28:21 -05:00
2018-04-02 10:21:17 +02:00
2018-03-02 09:26:37 -05:00
2018-04-02 10:21:17 +02:00
2018-03-02 09:26:37 -05:00
2018-03-19 19:39:37 +03:00
2017-09-22 12:00:37 -04:00
2017-10-30 00:32:22 -05:00
2017-12-21 17:52:06 -05:00
2018-02-03 03:23:10 -05:00
2017-10-04 16:40:45 -04:00
2018-04-02 10:21:17 +02:00
2018-03-02 09:26:37 -05:00
2018-04-02 10:21:17 +02:00
2018-03-02 01:28:38 -05:00
2018-03-02 01:28:38 -05:00
2018-02-03 03:35:02 -05:00
2017-12-26 19:24:25 -05:00
2018-03-02 01:28:38 -05:00
2018-01-23 16:56:14 +04:00
2018-03-02 01:28:38 -05:00
2018-03-02 01:25:54 -05:00
2018-03-02 01:28:38 -05:00
2018-03-02 01:28:38 -05:00
2018-04-02 10:21:17 +02:00
2018-04-04 10:42:35 +02:00
2018-03-20 23:43:18 +09:00
2017-12-21 16:49:47 -05:00
2018-04-02 10:21:17 +02:00
2018-03-02 01:28:38 -05:00
2018-03-15 11:58:20 +04:00