Ad
  • Default User Avatar

    I had thought a workaround regarding turning the array into a string, apply the reverse on it and then turn it back into an array.

    But since this exists on PHP, no real need. Just for the fun of tinkering around with it.

  • Custom User Avatar

    Probably it's a matter of precision

  • Custom User Avatar

    I don't understand what random tests are telling me,
    I check in the IDE and everything works.
    The same test passes successfully.
    What does he see wrong? My code is extremely simple.

  • Custom User Avatar

    By brute force it eventually passed, I looked to see if the most voted codes did better and I got the same result.

  • Custom User Avatar

    Faced this problem. Were you able to solve it?

  • Custom User Avatar

    Sometimes we have tests that expect a float as output, for example :

    It should work for random tests too: 45.5 should equal 45.0
    It should work for random tests too: 535.5 should equal 535.0
    It should work for random tests too: 711.5 should equal 711.0
    It should work for random tests too: 829.5 should equal 829.0