We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d11f9 commit f1ec84aCopy full SHA for f1ec84a
data_structures/stacks/balanced_parentheses.py
@@ -6,7 +6,7 @@
6
7
8
def balanced_parentheses(parentheses):
9
- """ Use a stack to check if a string of parentheses are balanced."""
+ """ Use a stack to check if a string of parentheses is balanced."""
10
stack = Stack(len(parentheses))
11
for parenthesis in parentheses:
12
if parenthesis == '(':
0 commit comments