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.
Your solution has more than one problem, probably caused by somewhat confusing description. First of all, you do not apply the odd/even multipliers correctly, your call to
mapi
is not correct. Then you do not reduce the obtained numbers to single-digit ones.You need to fix your solution. In case of problems, you can ask for help in
#help-solve
channel of CW Discord.Language: F#
It fails test 1-4 and 6 but all other passes, manually testing it works fine on my end.
Approved
Lua translation and Prolog translation
Fixed.
Self-approved :)
Added random tests to CoffeeScript
Double every other digit, scanning from right to left, starting from the second digit (from the right).
Whilst your code is doubling every digit.
Your solution is wrong and fails with inputs like
8675309
it returnstrue
instead offalse
.Not a kata issue.
You're not doing that right.
Everything is working on my end, and I am passing the test. But when I attempt, it is saying expected true to equal false and vice versa if I change.
Scala translation
Good problem!
Nice, thanks for that @hobovsky. Indeed, it's passing now.
I changed the reference solution which seemed to be buggy, and your solution passes now. Please verify and mark the issue as resolved if the problem does not occur anymore.
Should be fixed.
Loading more items...