Skip to content

Commit eeb4131

Browse files
Generate parantheses iterative
1 parent ad4bbd6 commit eeb4131

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

backtracking/generate_parentheses_iterative.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
5. Return the result containing all valid combinations.
1515
1616
Args:
17-
n (int): The desired length of the parentheses combinations.
17+
n (int): The desired length of the parentheses combinations
1818
1919
Returns:
20-
list: A list of strings representing valid combinations of parentheses.
20+
list: A list of strings representing valid combinations of parentheses
2121
2222
Time Complexity:
23-
O(2^(2n)).
23+
O(2^(2n))
2424
2525
Space Complexity:
26-
O(2^(2n)).
26+
O(2^(2n))
2727
"""
2828

2929

0 commit comments

Comments
 (0)