Cody

Problem 3077. Big numbers, least significant digits

Solution 3341228

Submitted on 23 Oct 2020 by Jeong Suong Yang
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

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

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

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

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

Suggested Problems

More from this Author4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!