From 84b1ce24978e9fd77e6f6920ef296ce86bf4a775 Mon Sep 17 00:00:00 2001 From: huangjikun <72253502+xiaomiusa87@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:13:01 +0800 Subject: [PATCH] Fix incorrect method name in permutations_ii.go (#1313) --- codes/go/chapter_backtracking/permutations_ii.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/go/chapter_backtracking/permutations_ii.go b/codes/go/chapter_backtracking/permutations_ii.go index 89cefd831..34a866c9e 100644 --- a/codes/go/chapter_backtracking/permutations_ii.go +++ b/codes/go/chapter_backtracking/permutations_ii.go @@ -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]