Balanced Brackets
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- easy
Given a string made of round, square and curly brackets, decide whether every opening bracket is closed by the same kind of bracket, in the right order. For example, round-square-close-square-close-round is fine, but round-square-close-round-close-square is not. Explain your approach.
Talk this problem through with an AI coach
Sign in with Google to start a free voice session — no credit card needed.