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.
This comment is hidden because it contains spoiler information about the solution
Thx! Glad to hear it. You can upvote this puzzle if you like it.
Rewrute description. Is this look better now?
Does all fine now? I check reference, all look good.
So me need change cata or no? If it possible say me hot write more clear in rules. I am bad in English. What i want to say. If pokemon1 have 10 damage, and pokemon2 have 15defence. Pokemon1 in anyway deal 1 garanted damage. 10 - 9 = 1. 10 - 10 = 1, 10 - 100 = 1. But 12 - 10 = 2 and so on. Help me please. Many people say it wrong, but i check my solution many times and all look fine.
Pikachu deal 1 damage per hit(12 his damage - 11 Mewtwo defence = 1)
Mewtwo deal 1 damage per hit(17 his damage - 17 Pikachu defence = 0, but minimal is 1, you can read this in note)
So Mewtwo should be the winner here. Its right?
Let calculate, slowpok deal 1 every step, Pickachu - 9. So 70/8 -> 61/7 -> 52/6 -> 43/5 -> 34/4 -> 25/3 -> 16/2 -> 7/1 And Slowpoke hit first,so winner Slowpoke. Right?
But i write in note - minimal deal damage is 1. I test your case now, all work fine.
Thanks for your comment, i tryed to fix that. But im not familiar with Python. Can you say or it work good now?
Can you explain, in your translation run not only 3 tests,right? He has a loop with many tests, but if one test of loop failed, all will too be failed? Thx, for translation!
Збс, чьотка
This comment is hidden because it contains spoiler information about the solution
Ready, thx for advice :)
I am realy newbie in JS and Codewars, so me need just add this case
assert.deepEqual(increment(9,9000,100), 1854892466545716 );
to basic test? Before i have a problem with max save int, so i rewrite cata with limitations(10000 for num, and 100 for other), and check all solution in this interval(all be fine). So, if you clealy know your test is needed in this cata, you can contribute him. Becouse i havent so exp to make right decision. Thanks for your help. Sorry if i spend your time.Thx for typo. Fix that. But i dont undestend what you mean about your edge case. I wrote randoms tests where number < 10000, step and iteration < 100. So big number like in your example not a real in my problem. Please explain more detail. Thx for help to upgrade my problem.
Loading more items...