akshitagit / akshitagit/JavaScript

IS PARENTHESIS BALANCED?

未關閉
#37 4 則留言 0 個 reaction 已指派 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 摘要。