Diffing "Pretty good" and "Pretty shorter"

Title: Pretty good Pretty shorter
Author: Mark Bartsch coldtortuga
Submitted: 2003-11-04 10:37:40 UTC 2003-11-04 11:36:51 UTC
Status: Passed Failed
Score: 60.0 0.0
Result: pass []
CPU Time: 0.11 0.0
Code:
f = 1;
for i=1:sum(b)
    g=b;
    g(f)=0;
    [e,f]=max(g);
    c(i)=a(f);
c=[];
while any(b)
    [e,f]=max(b);
    c=[c e];
    b(f)=b(f)-1;
end