Cody

Solution 1945070

Submitted on 21 Sep 2019 by Augusto Mazzei
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 = 23; n = 2 y_correct = 29; assert(isequal(findLeastInBig(x,n),y_correct))

n = 2 s = '2 9' s = 29

2   Pass
x = 123; n = 3; y_correct = 867; assert(isequal(findLeastInBig(x,n),y_correct))

s = '8 6 7' s = 867

3   Pass
x = 9876; n = 1024; y_correct = 1376; assert(isequal(findLeastInBig(x,n),y_correct))

s = '20 13 7 6' s = 1376

4   Pass
x = 1234; n = 45; y_correct = 7824; assert(isequal(findLeastInBig(x,n),y_correct))

s = '7 8 2 4' s = 7824

5   Pass
x = 201; n = 100; y_correct = 1; assert(isequal(findLeastInBig(x,n),y_correct))

s = '0 0 1' s = 1