Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
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.
done
Needs random tests. It would also be surprising if this weren't a duplicate.
thats right
you should use return instead of print