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.
Where are the types? You were supposed to write TypeScript code, not that damn JS! ðŸ«
a lot of work to a really easy task
Agreed, decrementing numbers should not cycle through 0
I ran into this too. I don't think decrementing numbers need to cycle back around. Numbers like 32109 or 21098 didn't get thrown at us as numbers to validate this.
109 is neither decrementing or incrementing... 1=>0=>9 is not a dec or inc'ing sequence.. and even if it was, it would have to be sequential (like 1=>2=>3)
uuuuuuuuh.... amateur!
... amateur
109 should return 2 because its a decrementingNumber
the testcase says it should be 1
someone can confirm that?