Cody

# Problem 42853. Fifteen Parity Check

Solution 2525703

Submitted on 12 Jun 2020
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   Fail
m=[1 2 3 4;5 6 7 8;9 10 11 12;13 15 14 16]; assert(isequal(fifteen_check(m),0))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test1 (line 2) assert(isequal(fifteen_check(m),0))

2   Fail
m=[1 2 3 4;5 6 7 8;9 10 11 12;13 14 16 15]; assert(isequal(fifteen_check(m),1))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test2 (line 2) assert(isequal(fifteen_check(m),1))

3   Fail
m=[6 3 16 11;7 14 8 5;15 1 2 4;13 9 10 12]; assert(isequal(fifteen_check(m),1))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test3 (line 2) assert(isequal(fifteen_check(m),1))

4   Fail
m=[7 3 16 11;6 14 8 5;15 1 2 4;13 9 10 12]; assert(isequal(fifteen_check(m),0))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test4 (line 2) assert(isequal(fifteen_check(m),0))

5   Fail
m=[6 3 16 11;7 14 8 5;15 2 1 4;13 9 10 12]; assert(isequal(fifteen_check(m),0))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test5 (line 2) assert(isequal(fifteen_check(m),0))

6   Fail
m=[6 3 11 16;7 14 8 5;15 1 2 4;13 9 10 12]; assert(isequal(fifteen_check(m),1))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test6 (line 2) assert(isequal(fifteen_check(m),1))

7   Fail
m=[8 2 3 13;1 6 10 9;15 14 16 5;11 12 4 7]; assert(isequal(fifteen_check(m),1))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test7 (line 2) assert(isequal(fifteen_check(m),1))

8   Fail
m=[7 2 3 13;1 6 10 9;15 14 16 5;11 12 4 8]; assert(isequal(fifteen_check(m),0))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test8 (line 2) assert(isequal(fifteen_check(m),0))

9   Fail
m=[8 3 2 13;1 6 10 9;15 14 16 5;11 12 4 7]; assert(isequal(fifteen_check(m),0))

Undefined function 'fifteen_check' for input arguments of type 'double'. Error in Test9 (line 2) assert(isequal(fifteen_check(m),0))