Skip to content

Commit d923496

Browse files
author
Denis Buzmakov
authored
added readme
1 parent 6b8c173 commit d923496

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

brackets/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Balanced Parentheses
2+
3+
### Description
4+
Given a sequence consisting of parentheses, determine whether the expression is balanced. A sequence of parentheses is balanced if every open parenthesis can be paired uniquely with a closed parenthesis that occurs after the former. Also, the interval between them must be balanced. You will be given three types of parentheses: (, {, [.
5+
6+
`([{}])` - this is balanced parenthesis
7+
8+
`([{]})` - this is not balanced parenthesis
9+
10+
### Output
11+
Returns `yes` if balanced and `no` if not.

0 commit comments

Comments
 (0)