Skip to content

Commit a8cfc14

Browse files
author
Mikael Souza
committed
Added more parentheses examples
1 parent 2d082cf commit a8cfc14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/stacks/balanced_parentheses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def balanced_parentheses(parentheses):
1717

1818

1919
if __name__ == '__main__':
20-
examples = ['((()))', '((())']
20+
examples = ['((()))', '((())', '(()))']
2121
print('Balanced parentheses demonstration:\n')
2222
for example in examples:
2323
print(example + ': ' + str(balanced_parentheses(example)))

0 commit comments

Comments
 (0)