Winner Imre Polik (Shame n)

Finish 2003-11-11 13:00:00 UTC

6th try!

by Mohsen Nosratinia

Status: Failed
Results: []

Based on: 5th try! (diff)

Comments
Mohsen Nosratinia
04 Nov 2003
Just a trick to eliminate IF and simulate C's ?: expression
Please login or create a profile.
Code
n=nnz(a)
for i=1:n
for j=1:n-i
c=a(j:i+j)
d=c==fliplr(c);
b=c*d+b*~d
end
end