Skip to content

Commit ed2340b

Browse files
authored
Update Symmetric Tree - Leetcode 101.py
1 parent 37ecd88 commit ed2340b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Symmetric Tree - Leetcode 101.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ def same(root1, root2):
2020
same(root1.right, root2.left)
2121

2222
return same(root, root)
23+
# Time: O(n)
24+
# Space: O(height) or O(n)

0 commit comments

Comments
 (0)