Really fun and clever kata! Great mix of string manipulation and logic — it strikes a nice balance between challenge and elegance. Thanks for putting this one together!
How did you get this to work without getters? I copy and pasted your solution and it didn't work because the methods that were being called didn't exist.
Hell yeah. Awsome backstory for a kata. Actually has a real world application. First time I ever put a switch statement in a for loop. Awsome and awsome.
Approved
Really fun and clever kata! Great mix of string manipulation and logic — it strikes a nice balance between challenge and elegance. Thanks for putting this one together!
Try an "attempt", the "test" is failing for me as well.
I believe the logic in test and attempt is different.
How did you get this to work without getters? I copy and pasted your solution and it didn't work because the methods that were being called didn't exist.
Just do my code
This was a fun concept but only a complete maniac would order their coordinates (y, x). Just a baffling disregard for basic geometry
I think so too
For Java, in your testcases, you may want to use
assertArrayEquals
instead ofassertEquals
youre close to your given runtime but using arr1.sort() and arr2.sort() at the start ruins it - try arr1.reverse() and arr2.reverse() instead
This entirely defeats the point of the problem, that being to take advantage of the fact that the arrays are already sorted.
It's not actually a great solution because it requires a big dependency and uses floating point.
Bars, bars, bars ...
because he used 'i' and the first used 'x'
Hell yeah. Awsome backstory for a kata. Actually has a real world application. First time I ever put a switch statement in a for loop. Awsome and awsome.
Eva is actually closer to the original Hebrew.
Loading more items...