Diffing "defgh" and "defghij"

Title: defgh defghij
Author: a Matt Johnson
Submitted: 2003-11-05 16:11:40 UTC 2003-11-05 16:12:28 UTC
Status: Passed Passed
Score: 99.0 97.0
Result: pass pass
CPU Time: 0.2 0.21
Code:
[m n]=size(a);
b=0;
[m n b]=size(a);
for i=1:m
  for j=1:m-i
    for k=1:n-j
      c = a(i:j+i,k:k+j);
      if c==c(1)
	b=max(b,sum(c(:)));
      end
    end
  end
end