Ad
  • Default User Avatar

    When testing Java, the input arguments are larger than stated in the conditions.

    pawn = 7220222102556628992
    expected distance = -4006299868596293632

    Declared in the assignment.

    P / p (Ruby) horizontal position of two pawns (between 2 and 1000000).

  • Custom User Avatar

    Java: expected solutions for the distance in the "huge_random_tests" overflow the long range and wrap around:

    • knight = 1
    • pawn = 7220222102556628992
    • expected distance = -4006299868596293632
  • Custom User Avatar

    The Kata description says input args are named as:

    N / n (Ruby) vertical position of Red Knight (0 or 1).
    P / p (Ruby) horizontal position of two pawns (between 2 and 1000000).
    

    But Java is using different arg names, not same as described.

  • Default User Avatar

    tell me where to start, no ideas at all

  • Default User Avatar

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