Skip to content

Commit

Permalink
Update 0035.搜索插入位置.md
Browse files Browse the repository at this point in the history
返回值应该是 right+1 把
  • Loading branch information
1055373165 authored Apr 27, 2023
1 parent f979407 commit 42cdaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0035.搜索插入位置.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func searchInsert(nums []int, target int) int {
left = mid + 1
}
}
return len(nums)
return right+1
}
```

Expand Down

0 comments on commit 42cdaa2

Please sign in to comment.