mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Fix the codes of backtracking.
This commit is contained in:
@@ -24,7 +24,6 @@ def pre_order(root: TreeNode) -> None:
|
||||
pre_order(root.right)
|
||||
# 回退
|
||||
path.pop()
|
||||
return
|
||||
|
||||
|
||||
"""Driver Code"""
|
||||
|
||||
@@ -23,7 +23,6 @@ def pre_order(root: TreeNode) -> None:
|
||||
pre_order(root.right)
|
||||
# 回退
|
||||
path.pop()
|
||||
return
|
||||
|
||||
|
||||
"""Driver Code"""
|
||||
|
||||
Reference in New Issue
Block a user