This commit is contained in:
krahets
2024-06-13 15:44:53 +08:00
parent b5c65756fc
commit f9d935e34c
6 changed files with 94 additions and 51 deletions

View File

@@ -401,7 +401,7 @@ comments: true
backtrack(state.clone(), choices, selected, res);
// 回退:撤销选择,恢复到之前的状态
selected[i] = false;
state.remove(state.len() - 1);
state.pop();
}
}
}
@@ -950,7 +950,7 @@ comments: true
backtrack(state.clone(), choices, selected, res);
// 回退:撤销选择,恢复到之前的状态
selected[i] = false;
state.remove(state.len() - 1);
state.pop();
}
}
}