Skip to content

Commit e145d62

Browse files
authored
Update Binary Tree Level Order Traversal (BFS) - Leetcode 102.py
1 parent 7267e82 commit e145d62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Binary Tree Level Order Traversal (BFS) - Leetcode 102.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ def levelOrder(self, root: Optional[TreeNode]) -> List[List[int]]:
2020
ans.append(level)
2121

2222
return ans
23+
24+
# Time Complexity: O(n)
25+
# Space Complexity: O(n)

0 commit comments

Comments
 (0)