You should explicitly say what metric you are using to calculate the distance (and not just thrown to the other side as a "challenge") because there are multiple ways to define distance between two points: Manhattan distance (horizontal distance+vertical distance), Chebyshev distance(maximum of horizontal/vertical distance), Pythagorean distance, etc... A "distance" between two points without specifying how you define it is basically turning it into guesswork, and creates confusion to everyone not familiar with them.
Nice one :-) thank you.
When I checked I saw that someone else had already approved it -- 163 completions already! BTW, now that you have had ten katas approved, when you write additional katas they will be approved more quickly -- scroll down in this issue for an explanation: https://github.com/Codewars/codewars.com/issues/866
https://www.codewars.com/kata/58f5c63f1e26ecda7e000029, is ready for approval please if you're not busy :-) it only took a few hours :-)
i guess that makes sense in case people had been modifying the example tests for their own debugging use. But yeah, if I click TRAIN AGAIN I see what you describe.
I think you have to reset the kata (the button on the left side of example tests button), to see the changes. When I try the kata again I see only a comment that I left in the example test section.
It worked for me now, cool! But the same example tests are still there. Maybe you should just edit the passport expiration dates for the people you want accepted in the example tests to be many years in the future.
Heh, our solutions are exactly the same except that I square the total outside the return statement and you square it inside.
Ok I think that's it, you can try it out if you like. Just that now there are no example tests :(
Yeah, there was a general CodeWars bug preventing any katas from being completed/submitted. It is fixed now, so go ahead and resubmit!
I guess no one has done this one for a while.
Currently Codewars platform is experiencing issues.
Firstly, really enjoyable kata. Help needed to understand why my solution doesn't pass muster.
When I run the 'Attempt' tests it tells me that they passed but maintains a red border around the output box. Doesn't allow me to submit either. Sample tests are fine.
Time: 3423ms Passed: 2 Failed: 0
(1 of 1 Assertions)
(1 of 1 Assertions)
Completed in 93.732186 ms