Skip to content

Commit 75c44f7

Browse files
committed
Merge branch 'add-type-hints-parentheses' of https://github.com/zain-cs/Python into add-type-hints-parentheses
2 parents 6fdefcf + 6753f91 commit 75c44f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backtracking/generate_parentheses_iterative.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def generate_parentheses_iterative(length: int) -> list[str]:
3636
"""
3737
if length == 0:
3838
return [""]
39-
40-
result : list[str] = []
41-
stack : list[tuple[str, int, int]] = []
39+
40+
result: list[str] = []
41+
stack: list[tuple[str, int, int]] = []
4242

4343
# Each element in stack is a tuple (current_combination, open_count, close_count)
4444
stack.append(("", 0, 0))

0 commit comments

Comments
 (0)