akshitagit / akshitagit/JavaScript

IS PARENTHESIS BALANCED?

Open
#37 4 comments 0 reactions 1 assignee Claimed by @Aayushi-Mittal View on GitHub
Beginner good first issue Hacktoberfest hacktoberfest2020 Javascript moderate
Dominant language
JavaScript
Stars
90
Forks
106
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.