Cody

Solution 901588

Submitted on 3 Jun 2016 by James
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

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

t = 32 y = 4 3 2 1 t = 29 y = 4 2 3 1 t = 27 y = 4 2 1 3 t = 13 y = 3 4 2 1 t = 13 y = 3 2 4 1 t = 10 y = 1 4 2 3 t = 10 y = 1 2 4 3

2   Pass
x=[7,5,3,2,6;6,3,6,6,5;3,3,9,4,7;4,5,3,3,4;2,3,4,3,5]; y_correct = [5,3,4,1,2]; assert(isequal(Assignment(x),y_correct))

t = 28 y = 5 4 3 2 1 t = 23 y = 5 4 3 1 2 t = 23 y = 5 4 2 3 1 t = 22 y = 5 4 2 1 3 t = 19 y = 5 4 1 3 2 t = 15 y = 5 3 4 1 2