mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-10 04:06:51 +08:00
Update 0035.搜索插入位置.md
返回值应该是 right+1 把
This commit is contained in:
@ -274,7 +274,7 @@ func searchInsert(nums []int, target int) int {
|
||||
left = mid + 1
|
||||
}
|
||||
}
|
||||
return len(nums)
|
||||
return right+1
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user