Cody

# Problem 43084. Combine the digits to output numbers

Solution 1693257

Submitted on 15 Dec 2018 by HH
• Size: 9
• This is the leading solution.
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; b = 2; y_correct = 12; assert(isequal(combineUs(x,b),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 unix (line 32) In combineUs (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
x = 2; b = 1; c = 0; y_correct = 210; assert(isequal(combineUs(x,b,c),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 unix (line 32) In combineUs (line 2) In ScoringEngineTestPoint2 (line 5) In solutionTest (line 5)]

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

d = 9 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In combineUs (line 2) In ScoringEngineTestPoint3 (line 6) In solutionTest (line 7)]