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.
in C:
static
(and can be renamed to something more reasonable e.g.solution
, sincestatic
makes the name obfuscation useless)const
-correctness and generates a warning. Given the function's interface, the only sensible thing to do is to return a heap-allocated string (even though the tests do not free anything), so this should be indicated by a comment, and a better return value would becalloc(1, 1)