You could try debugging by printing the array manually, and looking at the returned value. Unfortunately, there's no error message for random tests, so you can't simply compare actual and expected :(
Yes that is true, however, we can track the digits in an array, or in a counter, and the numbers should not be exceeding a long. It is difficult to provide usefull informations since codewars just tells me that I failed all the tests, not what my output was, so I cannot compare my independent results with the results on this platform.
Well, I'd call it questionable because there're numbers bigger than int inside the input array (according to an error message I received), but the tests can be passed.
Also, you're providing no useful information about your problem
Please read the description:
This comment is hidden because it contains spoiler information about the solution
You could try debugging by printing the array manually, and looking at the returned value. Unfortunately, there's no error message for random tests, so you can't simply compare actual and expected :(
Yes that is true, however, we can track the digits in an array, or in a counter, and the numbers should not be exceeding a long. It is difficult to provide usefull informations since codewars just tells me that I failed all the tests, not what my output was, so I cannot compare my independent results with the results on this platform.
Well, I'd call it questionable because there're numbers bigger than
int
inside the input array (according to an error message I received), but the tests can be passed.Also, you're providing no useful information about your problem
There is an issue with the test. When I ran my code independently, it loaded the correct answer. The C testing is faulty.