A=B
Not enough ratings
Parentheses
   
Award
Favorite
Favorited
Unfavorite
Tags: level
File Size
Posted
Updated
328.339 KB
4 Jun, 2022 @ 9:20am
4 Jun, 2022 @ 9:35am
2 Change Notes ( view )

Subscribe to download
Parentheses

Description
Input: A string of "[" and "]".
Output: Check if the input is a legal parenthesized string. I.e, every "[" must have a matching "]" after it.
3 Comments
garr890354839 21 Sep @ 4:17pm 
Too easy.
hmm 10 Jul @ 9:37am 
i completed it with 4 lines before i even knew the challenge, also 小电动, you don't need to use symbols to represent the state of true and false
小电动 25 Dec, 2022 @ 5:49am 
Hints:
- DO NOT CONVERT FROM AN EMPTY STRING - it causes infinite circles
- USE SYMBOLS TO REPRESENT THE STATE OF PASSED AND FAILED ASSERTIONS