Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thx! Glad to hear it. You can upvote this puzzle if you like it.

  • Custom User Avatar

    Rewrute description. Is this look better now?

  • Custom User Avatar

    Does all fine now? I check reference, all look good.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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?

  • Custom User Avatar

    But i write in note - minimal deal damage is 1. I test your case now, all work fine.

  • Custom User Avatar

    Thanks for your comment, i tryed to fix that. But im not familiar with Python. Can you say or it work good now?

  • Custom User Avatar

    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!

  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Ready, thx for advice :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    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...