mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 06:26:08 +00:00
fix preorder_traversal_iii_compact code
This commit is contained in:
@@ -35,7 +35,7 @@ void undoChoice(vector *state, TreeNode *choice) {
|
||||
vectorPopback(state);
|
||||
}
|
||||
|
||||
/* 前序遍历:例题三 */
|
||||
/* 回溯算法:例题三 */
|
||||
void backtrack(vector *state, vector *choices, vector *res) {
|
||||
// 检查是否为解
|
||||
if (isSolution(state)) {
|
||||
|
||||
Reference in New Issue
Block a user