Cody

Solution 2629957

Submitted on 29 Jun 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
a = [ 1 2 3 0 4 5 6 0 0 ]; b_correct = [ 0 0 0 1 2 3 6 4 5 ]; assert(isequal(bubbles(a),b_correct))

v = 0 1 6 v = 0 2 4 v = 0 3 5

Output argument "b" (and maybe others) not assigned during call to "bubbles". Error in Test1 (line 7) assert(isequal(bubbles(a),b_correct))

2   Fail
a = [ 1 0 5 0 7 0 6 ]'; b_correct = [ 0 0 0 1 5 7 6 ]'; assert(isequal(bubbles(a),b_correct))

v = 0 0 0 1 5 7 6

Output argument "b" (and maybe others) not assigned during call to "bubbles". Error in Test2 (line 3) assert(isequal(bubbles(a),b_correct))

3   Fail
a = [1 0; 1 1]; b_correct = [1 0; 1 1]; assert(isequal(bubbles(a),b_correct))

v = 1 1 v = 0 1

Output argument "b" (and maybe others) not assigned during call to "bubbles". Error in Test3 (line 3) assert(isequal(bubbles(a),b_correct))

4   Fail
a = [0 8 0 6 -2]'; b_correct = [0 0 8 6 -2]'; assert(isequal(bubbles(a),b_correct))

v = 0 0 8 6 -2

Output argument "b" (and maybe others) not assigned during call to "bubbles". Error in Test4 (line 3) assert(isequal(bubbles(a),b_correct))