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.
Maybe because that page includes JS examples, and this kata was written in Python?
Also, this kata is already retired, so it's no use trying to fix it anymore.
Thanks for sharing the link FArekkusu, my knowledge of Javascript is very low. I am getting an error when running the following as the test:
for(var i = 0; i < 200; i++){
var number = Math.round(Math.random() * 10);
Test.assert_equals(add(number), month2(number))
}
ERROR MESSAGE:
File "main.py", line 5
for(var i = 0; i < 200; i++){
^
SyntaxError: invalid syntax
Any clue what is going on? thanks
https://github.com/codingforeveryone/READMEs/blob/master/codewars/random-test-cases-for-complete-beginners.md
Hi FAreklussu what do you mean by random test? and to Create a mapping between a fixed set of inputs and outputs?
Thanks for your help.
Done, thanks!
You should update the sample and attempt tests too, not only the kata description.
Updated, thanks anter69
Grammar: 'There are only 12 months!'
"Create a mapping between a fixed set of inputs and outputs" is neither novel nor useful idea.
No random tests.
Hi FArekkusu,
Thanks for you tip! I have tried to get c & d as a fraction or exponential but it doesn't seem to work either way. Am I on the right path?? Cheers
You have to convert the numbers
a
andb
into such (smaller) numbersc
andd
thata^b % 10 == c^d % 10
.For example, in the
last_digit(38710248912497124917933333333284108412048102948908149081409204712406, 226628148126342643123641923461846128214626)
test case you have to find such integersc
andd
that:Hi FArekkusu, thanks for your prompt response.
However you should keep in mind that I am a 6 kyu and my knwoledge is quite vague in terms of processing and optimizing the code. Could you please explain me what you mean by 'process the input numbers '?
Thanks for you time!
C++ translation. Please, review and approve.
Loading more items...