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.
The testcases actually contain such example: 36288000 can be represented both as
"99900000000"
and"A0000000000"
. Only one of the solutions is considered correct though...you are using the C++ std::string, working with strings in c11 is a bit more painful since you can only have a null terminated char array
https://www.tutorialspoint.com/cprogramming/c_strings.htm
the example at the link above shows how to work with static char arrays but if you need a string of a dynamic length, of course the array can also be a dynamic one (obtained through malloc/calloc/realloc)
you can no longer use str += 'x', instead use str[len++] = 'x'; str[len] = '\0';