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.
2nd line of the description.
This is NOT a kata issue. When your solution can't pass the tests
printf
starts outputting text in an "unexpected" way. Maybe your code is working correctly in these cases, but it's still wrong.When I ran the program it fails for "a" and "aa b". But when I checked the output in printf, values are "a" and "aa". Then why tests are failing.
FArekkusu(1 kyu)27 minutes ago
mumararshaikh(8 kyu)11 minutes ago1 edit
But issue happen only when the answer is a like "aaa b", "aa b", "a". But it passed for "b aa".
@FArekkusu Can you elaborate why printf function act funny.
But issue happen only when the answer is a like "aaa b", "aa b", "a". But it passed for "b aa".
@FArekkusu Can you elaborate why printf function act funny.
printf
may act funny from time to time making it even harder to understand what's happening.When I ran the program it fails for "a" and "aa b". But when I checked the output in printf, values are "a" and "aa". Then why tests are failing.