Ad
  • Custom User Avatar

    The final results are far from the safe integer range, so there is no guaranteed the order of operation will result in the same value.

    In fact, multiplying the numbers in reverse (from largest to smallest) already causes over half of the random tests to fail.

  • Custom User Avatar

    It would be surprising if this weren't a duplicate.

    Also, in your example solution, you modify your input. This is not a best practice, and it's entirely unnecessary.

    This is not the kata CodeWars needs. I'd suggest unpublishing it.