Cody

Solution 2147766

Submitted on 2 Mar 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
list = [5 2 3 7 4 9 2 3 8 2 3 5 8 2 7 8 4 2 8 2]; y_correct = [0 0 1 1 1 1 1 1 0 1]; assert(isequal(findBestDominoeOrientation(list),y_correct))

l = Columns 1 through 30 28 37 31 25 38 36 38 24 35 30 25 21 34 25 26 17 25 37 22 17 34 26 36 27 29 35 30 40 30 24 Columns 31 through 60 26 36 35 24 28 20 34 31 29 23 35 21 37 34 32 32 24 24 28 27 26 31 27 41 27 41 26 29 33 32 Columns 61 through 90 25 33 37 24 23 13 26 38 23 30 37 37 31 24 24 22 31 31 24 32 37 30 29 28 23 30 29 26 36 30 Columns 91 through 100 38 17 30 37 28 28 26 28 33 29

Output argument "orientation" (and maybe others) not assigned during call to "findBestDominoeOrientation". Error in Test1 (line 12) assert(isequal(findBestDominoeOrientation(list),y_correct))

2   Fail
list = [0 8 4 8 2 0 8 0 5 7 7 2 1 6 2 6 2 7 0 2]; y_correct = [0 1 0 1 1 1 1 0 1 1]; assert(isequal(findBestDominoeOrientation(list),y_correct))

l = Columns 1 through 30 31 27 39 19 41 27 33 41 15 41 29 29 29 29 39 41 41 35 29 19 23 39 43 23 25 33 29 41 33 33 Columns 31 through 60 31 39 31 31 33 33 35 11 29 29 25 35 39 35 37 41 31 13 41 19 23 39 35 43 31 31 19 29 21 47 Columns 61 through 90 29 39 33 31 33 19 25 31 41 25 25 39 37 31 19 11 25 39 25 39 39 21 35 43 31 27 41 33 29 21 Columns 91 through 100 41 31 33 33 25 35 23 11 39 39

Output argument "orientation" (and maybe others) not assigned during call to "findBestDominoeOrientation". Error in Test2 (line 12) assert(isequal(findBestDominoeOrientation(list),y_correct))

3   Fail
list = [7 5 3 1 5 1 6 5 4 8 2 6 5 1 1 3 5 9 9 2 0 7 1 7]; y_correct = [0 0 1 1 1 0 0 0 0 0 0 1]; assert(isequal(findBestDominoeOrientation(list),y_correct))

l = Columns 1 through 30 47 39 29 37 31 15 39 45 41 17 25 37 39 33 33 33 33 35 35 39 35 37 39 29 35 39 31 37 23 47 Columns 31 through 60 41 31 35 33 39 39 37 37 33 43 35 23 45 47 29 41 23 39 41 31 29 35 47 29 49 41 37 53 25 27 Columns 61 through 90 37 35 29 25 39 31 37 41 29 33 33 35 27 27 33 47 43 33 37 51 25 35 47 39 37 31 49 25 39 33 Columns 91 through 100 37 31 33 45 25 37 33 33 19 31

Output argument "orientation" (and maybe others) not assigned during call to "findBestDominoeOrientation". Error in Test3 (line 14) assert(isequal(findBestDominoeOrientation(list),y_correct))

4   Fail
list = [0 4 0 3 8 2 2 5]; y_correct = [1 0 1 1]; assert(isequal(findBestDominoeOrientation(list),y_correct))

l = Columns 1 through 30 11 12 5 8 9 4 5 5 9 9 4 9 9 5 11 6 8 4 8 9 9 11 4 6 7 4 8 11 12 8 Columns 31 through 60 12 12 8 8 11 8 6 11 9 8 12 8 9 12 8 9 8 9 9 14 6 11 7 8 9 14 9 9 11 12 Columns 61 through 90 12 9 8 6 8 9 7 8 11 11 9 8 11 11 6 9 9 9 8 7 7 6 11 12 11 9 8 8 11 8 Columns 91 through 100 9 11 12 11 7 12 9 8 7 11

Output argument "orientation" (and maybe others) not assigned during call to "findBestDominoeOrientation". Error in Test4 (line 6) assert(isequal(findBestDominoeOrientation(list),y_correct))