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 can answer that. If an input string ends with a letter, last word won't be added to the result. So here we appending random char to str and popping it back at the end.
Really cool solution! I should note to everyone here ellipsis in cases is non-standard, but clang and gcc supports them and it really should be in the standard.