akshitagit / akshitagit/JavaScript

IS PARENTHESIS BALANCED?

Đang mở
#37 4 bình luận 0 reaction 1 người được giao Được @Aayushi-Mittal nhận Xem trên GitHub
Beginner good first issue Hacktoberfest hacktoberfest2020 Javascript moderate
Ngôn ngữ chính
JavaScript
Star
90
Fork
106
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.