I learned here on Cody about java.math on Matlab
but not about python!!
Thanks for teaching me! ;-)
Solution 11 by Alfonso crushes Java performance with a time of 0.014s for 1000!. Best use of base.
longer code but considerably faster non-java solution (0.05s for 1000!)
Solution 9 sees Alfonso step up and provide a concise method in the Best Factorial Solution in the Non-Java Category.
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.
Find state names that start with the letter N
Is my wife right? Now with even more wrong husband
middleAsColumn: Return all but first and last element as a column vector
Say something funny
Determine the number of odd integers in a vector
Genome Sequence 004: Long 3rd Generation Segment Correction
Rubik's Cube: 30 Moves or Less : Minimum Moves
PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
Image Processing 003: Interferometer Data Interpolation
Slitherlink II: Gimmes
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office