Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = [ ...
1 2 0 0 0
0 0 5 0 0
2 7 0 0 0
0 6 9 3 3];
r_correct = 4;
assert(isequal(fullest_row(a),r_correct))
i =
1
3
1
3
4
2
4
4
4
ans =
4
|
2 | Pass |
%%
a = [ ...
1 2 0 0
0 0 5 0
0 6 9 -3
2 7 0 0
0 0 0 0];
r_correct = 3;
assert(isequal(fullest_row(a),r_correct))
i =
1
4
1
3
4
2
3
3
ans =
3
|
3 | Pass |
%%
a = [ ...
1 0 0
0 0 0
0 0 0
0 0 0
0 2 3];
r_correct = 5;
assert(isequal(fullest_row(a),r_correct))
i =
1
5
5
ans =
5
|
4 | Pass |
%%
a = [ ...
0
0
0
-3
0
0];
r_correct = 4;
assert(isequal(fullest_row(a),r_correct))
i =
4
ans =
4
|
12387 Solvers
686 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
521 Solvers
327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!