This commit is contained in:
2025-02-06 11:14:33 +08:00
commit 07847a2d9e
535 changed files with 65131 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package utility
import (
"fmt"
"testing"
)
func TestBinarySearch(t *testing.T) {
// a := []int{5, 4, 3, 2}
a := []int{7, 5, 3, 9, 2, 6}
dst := BinarySearch(a, 106)
fmt.Println(dst)
}