Always difficult with James.
James is the master of deceptively difficult Cody problems.
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.
Inner product of two vectors
Magic is simple (for beginners)
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Is it an Armstrong number?
Numbers spiral diagonals (Part 2)
Don't be mean. Be nice!
Muphry's Law of MATLAB
Should Mr McNugget even get out of bed today?
Numbers in extended form
Still more miles to go before I sleep
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