Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a95663

Browse files
feat: add solutions to lc problem: No.0144 (doocs#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‎

Lines changed: 0 additions & 1 deletion
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‎

Lines changed: 0 additions & 1 deletion
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‎

Lines changed: 0 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /