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.
This comment is hidden because it contains spoiler information about the solution
This seems like a thing of beauty
This comment is hidden because it contains spoiler information about the solution
Why specify multiplying in order? Commutative property of multiplication I think its called, a * b * c = b * a * c , order doesn't matter
How can you return an unsigned value of negative 1 for the rust version? u64 is unsigned. if it doesn't fit I need to return -1? This seems like nonsense and obviously you can't get a function to compile that requires a -1 value for an unsigned integer. Thats why its unsigned.
This comment is hidden because it contains spoiler information about the solution
This is why I joined this site. PHP is such a powerful language. I have never even heard of this function and here it is, making this problem a one liner. Well done.