Skip to content

Commit

Permalink
Fix incorrect method name in permutations_ii.go (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomiusa87 committed Apr 30, 2024
1 parent a3950e1 commit 84b1ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codes/go/chapter_backtracking/permutations_ii.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func backtrackII(state *[]int, choices *[]int, selected *[]bool, res *[][]int) {
(*selected)[i] = true
*state = append(*state, choice)
// 进行下一轮选择
backtrackI(state, choices, selected, res)
backtrackII(state, choices, selected, res)
// 回退:撤销选择,恢复到之前的状态
(*selected)[i] = false
*state = (*state)[:len(*state)-1]
Expand Down

0 comments on commit 84b1ce2

Please sign in to comment.