This commit is contained in:
krahets
2024-05-04 19:57:03 +08:00
parent 6d966b8b5d
commit 2395804410
27 changed files with 792 additions and 91 deletions
@@ -724,7 +724,7 @@ comments: true
(*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]