fix(Go): code comment error (#1404)

* fix: comment error

* fix: comment error in zn-hant version
This commit is contained in:
Flamingo 2024-06-28 19:18:17 +08:00 committed by GitHub
parent a7c241609f
commit 4190eca41a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
// 递归子问题 f(m+1, j) // 递归子问题 f(m+1, j)
return dfs(nums, target, m+1, j) return dfs(nums, target, m+1, j)
} else if nums[m] > target { } else if nums[m] > target {
// 于则递归左半数组 // 于则递归左半数组
// 递归子问题 f(i, m-1) // 递归子问题 f(i, m-1)
return dfs(nums, target, i, m-1) return dfs(nums, target, i, m-1)
} else { } else {

View file

@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
// 遞迴子問題 f(m+1, j) // 遞迴子問題 f(m+1, j)
return dfs(nums, target, m+1, j) return dfs(nums, target, m+1, j)
} else if nums[m] > target { } else if nums[m] > target {
// 於則遞迴左半陣列 // 於則遞迴左半陣列
// 遞迴子問題 f(i, m-1) // 遞迴子問題 f(i, m-1)
return dfs(nums, target, i, m-1) return dfs(nums, target, i, m-1)
} else { } else {