Skip to content

Commit 6753f91

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c954633 commit 6753f91

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)