akshitagit / akshitagit/JavaScript
IS PARENTHESIS BALANCED?
オープン
Beginner
good first issue
Hacktoberfest
hacktoberfest2020
Javascript
moderate
- 主要言語
- JavaScript
- スター
- 90
- フォーク
- 106
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
You are given a string of brackets i.e. '{', '}' , '(' , ')', '[' , ']' . You have to check whether the sequence of parenthesis is balanced or not.
For example, "(())", "(())()" are balanced and "())(", "(()))" are not.
Input Format
A string of '(' , ')' , '{' , '}' and '[' , ']' .
Constraints
1<=|S|<=10^5
Output Format
Print "Yes" if the brackets are balanced and "No" if not balanced.
Sample Input
(())
Sample Output
Yes
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。