edit mainFunc name

This commit is contained in:
Alexander Chernikov
2020-12-21 17:55:24 +03:00
parent c18739f262
commit fcd2655a4a
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ package leetcode
import "sort"
// SmallestRangeII ...
func SmallestRangeII(A []int, K int) int {
// smallestRangeII ...
func smallestRangeII(A []int, K int) int {
n := len(A)
sort.Ints(A)
var ans int = A[n-1] - A[0]

View File

@ -42,7 +42,7 @@ func Test_Problem910(t *testing.T) {
for _, q := range qs {
_, p := q.ans910, q.para910
fmt.Printf("【input】:%v 【output】:%v\n", p, SmallestRangeII(p.A, p.K))
fmt.Printf("【input】:%v 【output】:%v\n", p, smallestRangeII(p.A, p.K))
}
fmt.Printf("\n\n\n")
}