Haha, same, good to know :D
If there is equality, it's a "touch", not a "collision".
In the process of (/attempt at) translating "Ludicrous Coloured Triangles" into Nim, I had to test it with a "less efficient solution; which should pass insane but not ludicrous" ==> once this part was done, I took the opportunity to quickly translate this Kata [Insane] into Nim too :)
Translation available to be reviewed:
(Note: as mentioned here; the "reference" solution is intentionally "fairly inefficient", in order to fail the tests of "Ludicrous Triangles"; which I am translating too [but the latter will use "more sophisticated" tools...])
Brilliant solution, so sneaky, I learned something from it.
Good for you? Try next one))
This comment is hidden because it contains spoiler information about the solution
Nice, first time I encounter Math.hypot!
The example tests are all looking for "does equal", and none look for "does not equal", so I simply wrote a function that returns an object O defined s.t. for all integers x, O == x. My code passed the example tests but not the final evaluation. Can you please add at least one "does not equal" test in the examples so people won't be led astray in this way.
what about it?
Ok that's some dedication you got there
He will never answer you, that's a deleted account.
@user9240328 how did you figure that out?
do linear solutions work (processes only 1 line with the help of Pa----'- -------- and time complexity of O(1/n)) or do I have to find another way? I'm kinda stuck around that.
BTW does censoring most of the hint make this comment spoiler free, and if it is, can you mark it for me? Thank you!