Problem 1854. Factorial: Unlimited Size : java.math
Solution Stats
Solution Comments
-
1 Comment
Nice one!
I learned here on Cody about java.math on Matlab
see: https://de.mathworks.com/matlabcentral/cody/problems/1833-usage-of-java-math-add-multiply-pow/solutions/325609
but not about python!!
Thanks for teaching me! ;-)
-
1 Comment
Solution 11 by Alfonso crushes Java performance with a time of 0.014s for 1000!. Best use of base.
-
1 Comment
longer code but considerably faster non-java solution (0.05s for 1000!)
-
1 Comment
Solution 9 sees Alfonso step up and provide a concise method in the Best Factorial Solution in the Non-Java Category.
-
3 Comments
We don't need no steenkin' Java. :-)
Solution 6 is an expertly crafted non-java solution. Complexity Level- Outstanding. Time for 1000! vs Java ?
The convolution method is considerably slower than Java, which is what you would expect. For the java vs. non-java solutions:
Java - Elapsed time is 0.138064 seconds.
This case - Elapsed time is 1.039240 seconds.
Problem Recent Solvers37
Suggested Problems
-
6912 Solvers
-
413 Solvers
-
Reverse the elements of an array
822 Solvers
-
339 Solvers
-
Back to basics - mean of corner elements of a matrix
368 Solvers
More from this Author260
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!