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.
That's an invalid input, and you've been told what to do with that:
Not a kata issue.
For C there is a test with count == 0, but the instruction was clear "the array can't be empty".
Instructions are unclear
done
Your code fails to handle cases with leading zeros (
042
). Your code outputs43
while the desired output should be043
Your code fails for two reasons:
Failure to handle cases with leading zeros (
042
). Your code outputs43
while the desired output should be043
Failure to handle big arrays (will result in Integer overflow if the merged value in the array is > 2147483647 which is the upper range of
int
)OP solved it, closing
OP solved it, closing
Think of it as a list of single-digit positive numbers separated from an integer. The output should be derived from merging them, incrementing the number by one and then separating each digit in the form of an array.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
For C, the Attempt tests seem broken.
The following test I return *count = 0 and return a pointer to a zero-sized buffer ("RETURNING NULL").
1 2 -1
RETURNING NULL <-- my debug code
There are other tests that hit this code that accept this value, but this one doesn't. Seems like bug.
This kata looks straightforward initially but then you find out some clever constraints.
Did you ever get this work? I'm having the exact same problem in C. I tried returning NULL as the function's return value as the test indicated, but that didn't work. Then I turned the bad entry into a 0 (NULL), but that didn't work either.
these test cases are dog
Loading more items...