Skip to content

IS PARENTHESIS BALANCED? #37

Open
Open

Description

@akshitagupta15june

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

Activity

  1. akshitagupta15june commented on Sep 25, 2020

    @akshitagupta15june
    MemberAuthor

    ADD IN THE SUITABLE CODE REPO

  2. Aayushi-Mittal commented on Sep 26, 2020

    @Aayushi-Mittal

    @akshitagupta15june Can I work on this issue please?

  3. akshitagupta15june commented on Sep 26, 2020

    @akshitagupta15june
    MemberAuthor

    ofcourse, assigning it to u

  4. niharikamahajan02 commented on Oct 22, 2021

    @niharikamahajan02

    is this issue still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions