JavaScript icon indicating copy to clipboard operation
JavaScript copied to clipboard

IS PARENTHESIS BALANCED?

Open akshitagupta15june opened this issue 5 years ago • 4 comments

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 avatar Sep 25 '20 18:09 akshitagupta15june

ADD IN THE SUITABLE CODE REPO

akshitagupta15june avatar Sep 25 '20 18:09 akshitagupta15june

@akshitagupta15june Can I work on this issue please?

Aayushi-Mittal avatar Sep 26 '20 14:09 Aayushi-Mittal

ofcourse, assigning it to u

akshitagupta15june avatar Sep 26 '20 17:09 akshitagupta15june

is this issue still open?

niharikamahajan02 avatar Oct 22 '21 19:10 niharikamahajan02