akshitagit / JavaScript

Repository for JavaScript codes and algos.Star the repo too.
https://github.com/akshitagupta15june
MIT License
85 stars 112 forks source link

IS PARENTHESIS BALANCED? #37

Open akshitagupta15june opened 4 years ago

akshitagupta15june commented 4 years ago

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

akshitagupta15june commented 4 years ago

ADD IN THE SUITABLE CODE REPO

Aayushi-Mittal commented 4 years ago

@akshitagupta15june Can I work on this issue please?

akshitagupta15june commented 4 years ago

ofcourse, assigning it to u

niharikamahajan02 commented 3 years ago

is this issue still open?