Winner Guy Shechter (j11)

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

no_call_to_length

by Mike Leventon

Status: Passed
Results: pass
CPU Time: 0.271
Score: 85.0
Submitted at: 2003-11-04 10:50:18 UTC
Scored at: 2003-11-04 11:22:38 UTC

Current Rank: 69th
Based on: randperm (diff)

Comments
Mike Leventon
04 Nov 2003
I just got rid of the call to "length" since "1:length(b)" is long.
Please login or create a profile.
Code
c=[];
z=[a;b];
for v=z
c = [c v(1)*ones(1,v(2))];
end
while any(~(diff(c)))
c=c(randperm(sum(b)));
end