-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IS PARENTHESIS BALANCED? #46
Comments
I would like to work on this issue |
ok i am assigning to u PROCESS OF CONTRIBUTION IN THIS REPOSITORY FORK THIS REPOSITORY HAPPY CODING AND CONTRIBUTING!!!! |
Thank you! I would like to open a PR on October 1 so it counts for HacktoberFest |
Hey, could you assign me this? I would like to work on this |
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
The text was updated successfully, but these errors were encountered: