Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [ 1 0 1
0 -1 0
-1 -1 1];
b = [4 8];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
wins =
4
8
|
2 | Pass |
a = [ 1 0 0
0 -1 0
-1 0 1];
b = [0];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
wins =
0×1 empty double column vector
wins =
0
|
3 | Pass |
a = [ 1 0 0
0 1 -1
1 -1 -1];
b = [2 7];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
wins =
2
7
|
4 | Pass |
a = [ 1 0 0
-1 1 -1
1 -1 0];
b = [7 9];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
wins =
7
9
|
Find best placement for ordered dominoes (harder)
194 Solvers
middleAsColumn: Return all but first and last element as a column vector
317 Solvers
Construct an index vector from two input vectors in vectorized fashion
125 Solvers
171 Solvers
328 Solvers