in case number 3 and 4 total number of element is also less than your correct fullest row output
How does this thing is possible
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))
r =
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))
r =
3
|
3 | Fail |
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))
r =
2
|
4 | Fail |
a = [ ...
0
0
0
-3
0
0];
r_correct = 4;
assert(isequal(fullest_row(a),r_correct))
r =
1
|
Find state names that end with the letter A
708 Solvers
2261 Solvers
given 3 sides, find area of this triangle
680 Solvers
Height of a right-angled triangle
448 Solvers
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
761 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!