mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-13 04:10:58 +00:00
Update preorder_traversal_iii.
This commit is contained in:
@@ -38,7 +38,6 @@ function backtrack(state, choices, res) {
|
||||
if (isSolution(state)) {
|
||||
// 记录解
|
||||
recordSolution(state, res);
|
||||
return;
|
||||
}
|
||||
// 遍历所有选择
|
||||
for (const choice of choices) {
|
||||
|
||||
Reference in New Issue
Block a user