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.
TypeScript translation
(OP was using Python) this got handled there
your code contains an off-by-one error,
i <= arrayLengthshould bei < arrayLengthThis comment is hidden because it contains spoiler information about the solution
Your solution seems to be buggy, as far as I can see it performs out of bound reads.
in C but it works when i rewrite my code
In what language?
there is a bug in the attempt test in the min he said (for example) expected 110 actual 10
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In this sense, the Kata is a good teacher of "reading the description properly"
I brute forced it since there is no test to check if the first index of a number is negative, ex:
num = -453
nth = 3
It should return -4.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The
suggestiontag should be used for giving potential improvements to the kata itself, this is just a solutionLoading more items...