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.
I like your code. I understand it better than mine. But you don't save any pointer to the start of the memory allocated for 'r' and 'q', so you could never free this memory.
I forgot free(part)
Anyway, I'm not very proud of this code. It's difficult to read and I admit than sometimes it fails one of the random tests.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution