fork download
  1. f = @(x)repmat(2>n(unique(cellfun(n=@numel,x))),n(x)>0);
  2.  
  3. f({})
  4. f({[1], [1], [2]})
  5. f({[1]})
  6. f({[1 2 3 4]})
  7. f({[1 2 3 4 5],[2],[12, 314123]})
  8. f({[1 2 3 4],[1]})
Success #stdin #stdout 0.46s 121792KB
stdin
Standard input is empty
stdout
ans = [](0x0)
ans =  1
ans =  1
ans =  1
ans = 0
ans = 0