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.
for
"8" + "9"
, this will allocate0
bytes of memory, while3
are needed.what makes your code crash however it the fixed test with an empty string (which should not exist, but that's a separate issue already reported here
Your solution has a bug. For some inputs it returns a non-freeable buffer, and tests crash on attempt to free it.
C
testcase: strsum("99999999999999999999999999999", "9999999999999999999"), "100000000009999999999999999998"
My code passes when I use the same testcase on the sample tests, yet I receive a "Caught unexpected signal: SIGSEGV (11). Invalid memory access." when attempting the generic tests.
What could be the problem?