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.
You are correct, sorry I got confused, and thought this was a problem, mod 10 indeed will return the last digit of any number which has more than 1 digit.
Just tried it on the language you used, PHP. Nope, nothing different. There's nothing wrong with using mod.
Not a valid kata issue, marking as resolved.
There's literally nothing wrong with using mod operator. Unless it has different behaviour on certain number in your language?
This comment is hidden because it contains spoiler information about the solution
Pretty funny and challenging kata, well done, compliments.
Almost there... Your code does not address this part -->
If there are 2 possible values, the larger value should be returned.
. It returns the smaller value insteadOP solved it, closing
OP solved it, closing
Approved
python: i have encountered this issue where if the result is for instance 15.5 it sometimes averages to 16, sometimes to 15 without modifying the code like i would just hit "attempt" multiple times and i would sometimes get 1 failed test, then i would get 17 failed tests, then i would get all the tests passed.
This comment is hidden because it contains spoiler information about the solution
Approved
done in fork
python: sample tests are not included in full tests suite.
python new test framework is required. updated in this fork
Loading more items...