Cody

Problem 43084. Combine the digits to output numbers

Solution 1927625

Submitted on 9 Sep 2019
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
x = 1; b = 2; y_correct = 12; assert(isequal(combineUs(x,b),y_correct))

ans = '1 2'

Output argument "y" (and maybe others) not assigned during call to "combineUs". Error in Test1 (line 4) assert(isequal(combineUs(x,b),y_correct))

2   Fail
x = 2; b = 1; c = 0; y_correct = 210; assert(isequal(combineUs(x,b,c),y_correct))

ans = '2 1 0'

Output argument "y" (and maybe others) not assigned during call to "combineUs". Error in Test2 (line 5) assert(isequal(combineUs(x,b,c),y_correct))

3   Fail
x = 1; b = 3; c = 0; d = 9 y_correct = 1309; assert(isequal(combineUs(x,b,c,d),y_correct))

d = 9 ans = '1 3 0 9'

Output argument "y" (and maybe others) not assigned during call to "combineUs". Error in Test3 (line 6) assert(isequal(combineUs(x,b,c,d),y_correct))