mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-17 01:06:07 +00:00
build
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user