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
common mistake: you are using
strcat()
on uninitialized memory.strcat()
will scan for the first nul byte (\0
) in a string and start writing there. Your code assumes thatordered
starts with a nul byte, but the function's contract makes no such promise: it is an output parameter, so you must treat it as if it could contain arbitrary bytes before you write to it. I have updated the tests to make your code fail consistently.