Merge pull request #2059 from 1055373165/patch-1

Update 0035.搜索插入位置.md
This commit is contained in:
程序员Carl 2023-05-14 10:24:43 +08:00 committed by GitHub
commit ea84e74adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func searchInsert(nums []int, target int) int {
left = mid + 1
}
}
return len(nums)
return right+1
}
```