Skip to content

Commit 03f54f3

Browse files
authored
than —> then
A minor spelling mistake in balanced bracket sequences
1 parent 222461f commit 03f54f3

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$, than 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 balances 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)