Skip to main content

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

Back to lesson: Practice: Quality Gate