akshitagit / akshitagit/JavaScript
IS PARENTHESIS BALANCED?
Ouverte
Beginner
good first issue
Hacktoberfest
hacktoberfest2020
Javascript
moderate
- Langage dominant
- JavaScript
- Étoiles
- 90
- Forks
- 106
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.