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.
jesus
you literally built a spaceship for solving this kata
man, thank you so much, you've really saved me from a lot of headaches.
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.This comment is hidden because it contains spoiler information about the solution
The test case "what time are we climbing up to the volcano" does not work for me. My code recognize volcano correctly, but it returns "vulcanog" instead.
There is probably a memory issue, but I can not find it.
Any Ideas?