akshitagit / akshitagit/JavaScript

IS PARENTHESIS BALANCED?

Aberta
#37 4 comentários 0 reações 1 responsável Reivindicada por @Aayushi-Mittal Ver no GitHub
Beginner good first issue Hacktoberfest hacktoberfest2020 Javascript moderate
Linguagem predominante
JavaScript
Estrelas
90
Forks
106
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.