fix preorder_traversal_iii_compact code

This commit is contained in:
krahets
2023-09-09 00:51:00 +08:00
parent 2217ffc447
commit f71b2a40da
14 changed files with 17 additions and 37 deletions
@@ -35,7 +35,7 @@ void undoChoice(vector *state, TreeNode *choice) {
vectorPopback(state);
}
/* 前序遍历:例题三 */
/* 回溯算法:例题三 */
void backtrack(vector *state, vector *choices, vector *res) {
// 检查是否为解
if (isSolution(state)) {