Skip to content

Commit 8a95663

Browse files
authored
feat: add solutions to lc problem: No.0144 (#2334)
No.0144.Binary Tree Preorder Traversal
1 parent a3507f7 commit 8a95663

File tree

18 files changed

+723
-366
lines changed

18 files changed

+723
-366
lines changed

solution/0000-0099/0094.Binary Tree Inorder Traversal/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class Solution:
6767
if root is None:
6868
return
6969
dfs(root.left)
70-
nonlocal ans
7170
ans.append(root.val)
7271
dfs(root.right)
7372

solution/0000-0099/0094.Binary Tree Inorder Traversal/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class Solution:
6262
if root is None:
6363
return
6464
dfs(root.left)
65-
nonlocal ans
6665
ans.append(root.val)
6766
dfs(root.right)
6867

solution/0000-0099/0094.Binary Tree Inorder Traversal/Solution.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def dfs(root):
1010
if root is None:
1111
return
1212
dfs(root.left)
13-
nonlocal ans
1413
ans.append(root.val)
1514
dfs(root.right)
1615

0 commit comments

Comments
 (0)