Winner Guy Shechter (j11)

Finish 2003-11-11 10:00:00 UTC

freqsort 3

by Alex Backer

Status: Passed
Results: pass
CPU Time: 0.221
Score: 100.0
Submitted at: 2003-11-04 10:21:33 UTC
Scored at: 2003-11-04 10:26:24 UTC

Current Rank: 153rd
Based on: freqsort 2 (diff)
Basis for: randperm (diff)

Comments
Please login or create a profile.
Code
c=[];
for i=1:length(b)
    c = [c a(i)*ones(1,b(i))];
end
while any(~(diff(c)))
    [y,i] = sort(rand(1,sum(b)));
    c=c(i);
end