We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Extra Long Factorials
Extra Long Factorials
Sort by
recency
|
1251 Discussions
|
Please Login in order to post a comment
I literally wrote an implementation for the BigInteger (just for factorials)
C++ Solution
C++ code. I don't think my way to solve this is best but, if anyone need this, you're welcome <3
In JS and recursive
crisp and easy
def extraLongFactorials(n): # Write your code here n_fact=1 while n>0: n_fact=n_fact*(n) n=n-1 return n_fact