-
3 Comments
Peter Wittenberg
on 26 Mar 2012
Yes, the size matters for this scoring, but using m(a)=0 makes for a grossly large vector. I'm not a big fan of this type of solution, which seems to make up the shortest solutions.
Alfonso Nieto-Castanon
on 26 Mar 2012
If you do not care about Cody-'size' solution 66088 implements the same algorithm more efficiently (using sparse vectors instead of a 'grossly large' matrix)...
Alfonso Nieto-Castanon
on 26 Mar 2012
my personal favourite nevertheless is Gangyi's 57169 solution, which seems to run typically twice as fast a my version...
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!