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.
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).
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
The Kata description says input args are named as:
But Java is using different arg names, not same as described.
tell me where to start, no ideas at all
This comment is hidden because it contains spoiler information about the solution