Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4];
y_correct = 3;
assert(isequal(second_biggist(x),y_correct))
ans =
3
|
2 | Pass |
x = [1 2 3 4; 5 6 7 8];
y_correct = 7;
assert(isequal(second_biggist(x),y_correct))
ans =
7
|
3 | Pass |
x = [1 2 3 4; 5 6 7 8; 9 10 11 12];
y_correct = 11;
assert(isequal(second_biggist(x),y_correct))
ans =
11
|
4 | Pass |
x = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16];
y_correct = 15;
assert(isequal(second_biggist(x),y_correct))
ans =
15
|
5 | Pass |
x = [1 2 3 4]';
y_correct = 3;
assert(isequal(second_biggist(x),y_correct))
ans =
3
|
Return the largest number that is adjacent to a zero
3749 Solvers
1763 Solvers
284 Solvers
485 Solvers
177 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!