
Write a program that repairs a parenthesis-only string by blanking the fewest characters possible.
./paren_repair '(()' | cat -eExpected result
()$
( )$For your own tracking. Tests grade your code.
./paren_repair '((()))' | cat -eExpected result
((()))$Expected files
paren_repair.cAllowed functions
writeputs
Write a program that repairs a parenthesis-only string by blanking the fewest characters possible.
./paren_repair '(()' | cat -eExpected result
()$
( )$For your own tracking. Tests grade your code.
./paren_repair '((()))' | cat -eExpected result
((()))$Expected files
paren_repair.cAllowed functions
writeputs
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.
v0.40: Create exercises. Challenge the community.
Meet Studio →