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.
actual
is what your function returned;expected
is what it should have returned. The first part of the log just tells you your answer is incorrect.I jsut solved the kata in C and it seems to behave correctly.
I'd expect your issue to be related to the result string being incorrectly null-terminated.
Read this: https://docs.codewars.com/training/troubleshooting/#works-but-no
No, it is fine, why do you say so?
From the kata's description
S
ands
are the same letter, ignoring capitalization.atoll
returnslong long int
, which cannot hold high values ofuint64_t
.Because the definition of your function says
unit64_t descendingOrder(...)
, which means that you have to return aunit64_t
, not along long
(atoll). Try to transformkarakteri
into anunit64_t
instead.It means your code doesn't return the right answer (though it's not a nice log, I agree). Your code not working is not a kata issue. Please read the documentation: https://docs.codewars.com/training/troubleshooting/
Just an idea, why don't you use the same data type as the output and input to perform your intermediate calculations?