Update binary_search.md

Edited number out of bound topic
pull/75/head
Slone 2 years ago committed by GitHub
parent b580b29b66
commit 75ffa5180e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -328,7 +328,10 @@ $$
=== "Go"
```go title=""
// (i + j) 有可能超出 int 的取值范围
m := (i + j) / 2
// 更换为此写法则不会越界
m := i + (j - i) / 2
```
=== "JavaScript"

Loading…
Cancel
Save