
Write a program that reads one camelCase identifier from the command line and prints it reformatted as snake_case.
./snake_fmt "buildReactApp"Expected result
build_react_app
For your own tracking. Tests grade your code.
./snake_fmt "vibeCodingMetGccToday" | cat -eExpected result
vibe_coding_met_gcc_today$./snake_fmt | cat -eExpected result
wrong number of arguments$Expected files
snake_fmt.cAllowed functions
write
Write a program that reads one camelCase identifier from the command line and prints it reformatted as snake_case.
./snake_fmt "buildReactApp"Expected result
build_react_app
For your own tracking. Tests grade your code.
./snake_fmt "vibeCodingMetGccToday" | cat -eExpected result
vibe_coding_met_gcc_today$./snake_fmt | cat -eExpected result
wrong number of arguments$Expected files
snake_fmt.cAllowed functions
write
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 →