Skip to main content

Practice · 1 of 2

Bracket Checker (mini-build)

CHALLENGE
Difficulty: beginner+25 XP

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.

Back to lesson: Practice: Quality Gate