This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 5;
a = [1 0 1 0 1;
0 1 0 1 0;
1 0 1 0 1;
0 1 0 1 0;
1 0 1 0 1];
assert(isequal(a,checkerboard(n)))
|
2 | Pass |
%%
n = 4;
a = [1 0 1 0;
0 1 0 1;
1 0 1 0;
0 1 0 1];
assert(isequal(a,checkerboard(n)))
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
29388 Solvers
1102 Solvers
Is this triangle right-angled?
1366 Solvers
193 Solvers
Write c^3 as sum of two squares a^2+b^2
243 Solvers