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.
Nice Kata but a bit easy for 5
In C, although it passes the fixed tests, it fails at random ones with the following error message:
?
definately best practise
so an iterative way would work?
This comment is hidden because it contains spoiler information about the solution
as usual, I have read this before but nothing helped
This comment is hidden because it contains spoiler information about the solution
I have figured the logic behind this, but my only problem (im in C) is that since it gives us only the const message string and expects us to return a pointer to a char array, how is this possible? everything inside the function will have a local address
I managed to succesfully solve this in my computer and perfectly works on all test cases, but when I attempt or test it here, it says that the test has been passed but a crash occured (unexpected signal) I'm in C lang
Caught unexpected signal: SIGSEGV (11). Invalid memory access.