A=B
评价数不足
Parentheses
   
奖励
收藏
已收藏
取消收藏
标签: level
文件大小
发表于
更新日期
328.339 KB
2022 年 6 月 4 日 上午 9:20
2022 年 6 月 4 日 上午 9:35
2 项改动说明 ( 查看 )

订阅以下载
Parentheses

描述
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 条留言
garr890354839 9 月 21 日 下午 4:17 
Too easy.
hmm 7 月 10 日 上午 9:37 
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
小电动 2022 年 12 月 25 日 上午 5:49 
Hints:
- DO NOT CONVERT FROM AN EMPTY STRING - it causes infinite circles
- USE SYMBOLS TO REPRESENT THE STATE OF PASSED AND FAILED ASSERTIONS