Cody

Solution 2120431

Submitted on 6 Feb 2020
  • Size: 11
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   Pass
x = [1 0]; y_correct = [1 1]; assert(isequal(repeatNumberbyzeros(x),y_correct))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In repeatNumberbyzeros (line 1) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

2   Fail
x = [-1 0 0 -2 0 0 0 5 0 0 0 0 ]; y_correct = [-1 -1 -1 -2 -2 -2 -2 5 5 5 5 5 ; assert(isequal(repeatNumberbyzeros(x),y_correct))

Error: File: Test2.m Line: 4 Column: 1 This statement is incomplete.

Suggested Problems