Ad
  • Custom User Avatar

    Very nice solution, but I don't prefer use regex and replace because for long string is not very good for performance

  • Custom User Avatar

    Thanks for your help. In fact, I had assumed that there were only three 3D points..

  • Custom User Avatar

    When I press the ATTEMPT button, the random test begins. How can I print the input there?

  • Custom User Avatar

    Thanks Chrono 79. But I still don't understand.
    I got this output:

    ...
    Result mismatch - Expected: [-0.82, 0.75, 0.35], instead got: [-2.72, 2.51, 1.18]
    Test Passed: Value deep equals [-1.54, -0.6, 0.64]
    Result mismatch - Expected: [-1.33, -0.5, -0.29], instead got: [-2.22, -0.84, -0.48]
    Test Passed: Value deep equals [-0.77, -0.82, -0.75]
    Result mismatch - Expected: [-0.31, -0.93, 0.06], instead got: [-0.93, -2.8, 0.19]
    ...

    This is very strange to me! Can you explain a possible reason, please?

  • Custom User Avatar

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

  • Custom User Avatar

    Hello guys!
    I wrote the function in Javascript, but a strange thing happened.

    The random test passes, but in random tests some pass and others don't and I don't understand why.

    I checked with one my colleague and it's very strange for him too.
    What can I do?
    A thousand thanks.