mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Added more parentheses examples
This commit is contained in:
parent
2d082cf19c
commit
a8cfc14737
@ -17,7 +17,7 @@ def balanced_parentheses(parentheses):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
examples = ['((()))', '((())']
|
||||
examples = ['((()))', '((())', '(()))']
|
||||
print('Balanced parentheses demonstration:\n')
|
||||
for example in examples:
|
||||
print(example + ': ' + str(balanced_parentheses(example)))
|
||||
|
Loading…
Reference in New Issue
Block a user