akshitagit / akshitagit/JAVA

IS PARENTHESIS BALANCED?

Abierto
#46 4 comentarios 0 reacciones 1 asignado Reclamado por @Nowele Ver en GitHub
algorithm good first issue Hacktoberfest hacktoberfest2020 Java
Lenguaje dominante
Java
Estrellas
101
Forks
131
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.