Practice ยท 4 of 4
Balanced brackets
CHALLENGE
Difficulty: beginner+25 XP
Implement static bool IsBalanced(string s) โ true when every bracket in s (only ()[]{} appear) closes in the correct nesting order. "([)]" is NOT balanced.
Press Submit to check your solution.
Back to lesson: Practice: Algorithm workshop