Always difficult with James.
This one fails when only last digit is incorrect. James, could you add some cases to eliminate it, please? 2, 819 or 889 should be enough.
Done, and you're correct: it failed 88887. Nice catch.
"% this code is stupid enough to make me want to throw something to my computer." - We've *all* written code like that, bainhome. No worries.
suddenly,madness just came up from nowhere.lol
Whoa. That is some serious regexprep-fu you have there, LY Cao.
Make the vector [1 2 3 4 5 6 7 8 9 10]
radius of a spherical planet
Breaking Out of the Matrix
Solve a System of Linear Equations
I've got the power! (Inspired by Project Euler problem 29)
Sums of Distinct Powers
It's Happy! It's Fun! It's Happy Fun Hyperball!
Reindex a vector
Sums of Multiple Pairs of Triangular Numbers
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