
Write a program that receives exactly one string argument and prints its last word followed by a newline.
./final_token "llm says works on my branch" | cat -eExpected result
branch$For your own tracking. Tests grade your code.
./final_token "rebase squash push" | cat -eExpected result
push$./final_token " " | cat -eExpected result
$Expected files
final_token.cAllowed functions
write
Write a program that receives exactly one string argument and prints its last word followed by a newline.
./final_token "llm says works on my branch" | cat -eExpected result
branch$For your own tracking. Tests grade your code.
./final_token "rebase squash push" | cat -eExpected result
push$./final_token " " | cat -eExpected result
$Expected files
final_token.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 →