Ad
  • Custom User Avatar

    Needs edge case [1, 1, 2, 2, 4]. This should expect 2 (kill 2 wolves with melee and shoot the farther wolf once, for 2 turns), but every solution, including author solution, expects 3.

    Well, except one solution, but this solution has incorrect handling, and fails at [2, 2].

  • Custom User Avatar

    The fixed tests are too weak: there are at least several solutions with incorrect checking and still passes. There is one hard-coding solution, and one solution that fails at [2, 2].

  • Custom User Avatar

    Random tests almost always has an expected value of max(distances) - 3.