This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 5;
a = [1 1 1 1 1;
1 0 0 0 1;
1 0 1 0 1;
1 0 0 0 1;
1 1 1 1 1;]
assert(isequal(bullseye2(n),a));
a =
1 1 1 1 1
1 0 0 0 1
1 0 1 0 1
1 0 0 0 1
1 1 1 1 1
ans =
[]
|
2 | Pass |
%%
n = 7;
a = [1 1 1 1 1 1 1;
1 0 0 0 0 0 1;
1 0 1 1 1 0 1;
1 0 1 0 1 0 1;
1 0 1 1 1 0 1;
1 0 0 0 0 0 1;
1 1 1 1 1 1 1];
assert(isequal(bullseye2(n),a));
ans =
[]
|
Return a list sorted by number of occurrences
1225 Solvers
Remove the small words from a list of words.
474 Solvers
5737 Solvers
Return the first and last character of a string
1662 Solvers
Implement simple rotation cypher
805 Solvers