Beta

The Shortest Path To Travel The Whole Grid: Obstacles Only On The Last Row

Description
Loading description...
Graphs
  • Please sign in or sign up to leave a comment.
  • dfhwze Avatar

    Are the solutions of the first kata even correct? I find that your ref sol here has in many cases -1 moves than the expected min number of the other kata.

    • LanXnHn Avatar

      The main difference between this 2 Kata is that going back to the beginning point or not

      For this one, you can save 1 step in certain situation, because you can end at anywhere.

      Ending at one of the particular points will save you 1 step. But these points might not always exist, so you will see it has 1 less in some cases, but not all.

    • LanXnHn Avatar

      Let me edit the description to make it clearer, also I will put some hints.

    • dfhwze Avatar

      ah ok

      Question marked resolved by dfhwze 5 months ago
  • saudiGuy Avatar

    Random tests are vulnerable to input modification.