akshitagit / akshitagit/JavaScript

IS PARENTHESIS BALANCED?

オープン
#37 コメント 4 件 リアクション 0 件 担当者 1 名 @Aayushi-Mittal が担当を希望しています GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。