Cody

Solution 1861332

Submitted on 29 Jun 2019
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))

s1 = 0 1 2 3 4 5 6 7 8 9 s2 = 10 10 10 10 10 10 10 10 10 10 s3 = 1.1111e+09

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))

s1 = 0 1 2 3 4 5 6 7 8 9 s2 = 10 10 10 10 10 10 10 10 10 10 s3 = 1.1111e+09

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))

s1 = 0 1 2 3 4 5 6 7 8 9 10 11 s2 = 10 10 10 10 10 10 10 10 10 10 10 10 s3 = 1.1111e+11

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))

s1 = 0 1 2 3 s2 = 10 10 10 10 s3 = 1111

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