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 摘要。