I get [28 0 9 2 26 7] for test case 2 and [0 13 0 0 0 11] for test case 3.
Tim,
I am not quite sure where did that amp came from in test-2.
it wasn't in my original test suite.
in test-3, grave accent is not a punctuation mark - so far i know.
For some reason, according to Matlab function isstrprop, the characters $ + < = > ^ ` | ~ are not considered to be punctuation marks, or letters, or digits, or anything else--this seems to be discriminatory and unjust.
Project Euler: Problem 5, Smallest multiple
412 Solvers
282 Solvers
Create the following sequence : 0 1 1 4 9 25 64 169 ...
64 Solvers
493 Solvers
36 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!