Cody

Solution 1627368

Submitted on 14 Sep 2018 by Michael Cappello
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [0 1; 1 0; 2 3; 4 5;]; y_correct = 2; assert(isequal(whosTheOutcast(x),y_correct))

y = 1 -1 1 1 y = 2

2   Pass
x = [2 4; 6 8; 2 3; 7 9;]; y_correct = 3; assert(isequal(whosTheOutcast(x),y_correct))

y = 2 2 1 2 y = 3

3   Pass
x = [1 3; 0 0; 2 2; 4 4;]; y_correct = 1; assert(isequal(whosTheOutcast(x),y_correct))

y = 2 0 0 0 y = 1

More from this Author43