Practice ยท 1 of 2
Bracket Checker (mini-build)
Implement int brackets_ok(const char *s) returning 1 when every '(' has a matching ')' in proper order (and likewise nothing unclosed at the end), else 0. Use a counter or a stack โ both pass.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Quality Gate