Retired

Check for Balanced Brackets (retired)

Description:

Given an expression string exp, write a program to examine whether the pairs and the orders of “{“, “}”, “(“, “)”, “[“, “]” , “<“, “>” are correct in exp.

Example:

Input: exp = [()]{}{[()()]()} 
Output: true

Input: exp = [(]) 
Output: false
Algorithms

Stats:

CreatedOct 20, 2021
Warriors Trained86
Total Skips0
Total Code Submissions100
Total Times Completed12
JavaScript Completions12
Total Stars0
% of votes with a positive feedback rating5% of 10
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes9
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • gleisonkz Avatar
Ad