Skip to content

Commit 38b5d62

Browse files
committed
Update invert-binary-tree.py
1 parent 0395b80 commit 38b5d62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/invert-binary-tree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def invertTree(self, root):
6262
nodes.push(node.right)
6363

6464
return root
65+
6566

6667
# Time: O(n)
6768
# Space: O(h)
@@ -82,6 +83,7 @@ def invertTree(self, root):
8283
nodes.append(node.right)
8384

8485
return root
86+
8587

8688
# Time: O(n)
8789
# Space: O(h)

0 commit comments

Comments
 (0)