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.
(Integer.MAX_VALUE)! is so INCOMPREHENDINGLY huge that we probably won't ever need the number of trailing zeroes lmao
If anyone ever does, PLEASE contact me so I can see why
negative factorials don't have a value, mathematically or computationally as far as I know, becaues of the definition
n! = n*((n-1)!), where 0! = 1
this is also the reason for some other funky mathematical phenomona, but this is a CS site so
point is, this function will never be used for values where n is an element of (-∞,0)
Completely forgot you could multiply i in a for loop, this is the upgraded version of mine
what if n is -6?
https://www.codewars.com/kata/reviews/55172ce3236c8829ae000596/groups/5bb680fd16a8f1ca17000e8c
Is this better or worse?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution