mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 04:16:29 +08:00
fix(Go): code comment error (#1404)
* fix: comment error * fix: comment error in zn-hant version
This commit is contained in:
parent
a7c241609f
commit
4190eca41a
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
|
|||
// 递归子问题 f(m+1, j)
|
||||
return dfs(nums, target, m+1, j)
|
||||
} else if nums[m] > target {
|
||||
// 小于则递归左半数组
|
||||
// 大于则递归左半数组
|
||||
// 递归子问题 f(i, m-1)
|
||||
return dfs(nums, target, i, m-1)
|
||||
} else {
|
||||
|
|
|
@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
|
|||
// 遞迴子問題 f(m+1, j)
|
||||
return dfs(nums, target, m+1, j)
|
||||
} else if nums[m] > target {
|
||||
// 小於則遞迴左半陣列
|
||||
// 大於則遞迴左半陣列
|
||||
// 遞迴子問題 f(i, m-1)
|
||||
return dfs(nums, target, i, m-1)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue