Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Sorry for the tag 'issue'.
Try adding prints to your code, you'll see that your code is accessing string data beyond the input and reading in unrelated data.
Please use the 'issue' label for issues with the kata description or testing. Bugs in your code don't count.
That looks like you're using a global var and that's why your answers become wrong, the expected answers given the input is fine. Not a kata issue.
Hi all! I solve tasks in C.
I ran into a problem while testing my code.
As if in tests another line is substituted instead of the one that is displayed on the screen.
FixedTests
for string: "a b"
expected: "b"
but got: "yz"
Completed in 0.5829ms
RandomTests
for string: "rqifoqs moxb"
expected: "rqifoqs"
but got: "qazeeqfjlqisgbgqammfpjlsn"
Completed in 0.8304ms
Moreover, if you comment out all the tests and leave one, the program I wrote solves all the options.
I did'n know about "sprintf" (((((