This solution is outdated. To rescore this solution, sign in.
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(:)))
|
2 | Pass |
%%
a = [ 1 0 0
0 -1 0
-1 0 1];
b = [0];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
3 | Pass |
%%
a = [ 1 0 0
0 1 -1
1 -1 -1];
b = [2 7];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
4 | Pass |
%%
a = [ 1 0 0
-1 1 -1
1 -1 0];
b = [7 9];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
Program an exclusive OR operation with logical operators
597 Solvers
Back to basics 11 - Max Integer
611 Solvers
Getting the absolute index from a matrix
177 Solvers
205 Solvers
Relative ratio of "1" in binary number
150 Solvers