Skip to content

Commit bd20cdd

Browse files
authored
balances —> balanced
1 parent 03f54f3 commit bd20cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combinatorics/bracket_sequences.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For this case there exists a very simple algorithm.
2929
Let $\text{depth}$ be the current number of open brackets.
3030
Initially $\text{depth} = 0$.
3131
We iterate over all character of the string, if the current bracket character is an opening bracket, then we increment $\text{depth}$, otherwise we decrement it.
32-
If at any time the variable $\text{depth}$ gets negative, or at the end it is different from $0$, then the string is not a balances sequence.
32+
If at any time the variable $\text{depth}$ gets negative, or at the end it is different from $0$, then the string is not a balanced sequence.
3333
Otherwise it is.
3434

3535
If there are several bracket types involved, then the algorithm needs to be changes.

0 commit comments

Comments
 (0)