Cody

# Problem 48. Making change

Solution 3455683

Submitted on 28 Oct 2020 at 16:44 by Oliver Warlow
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
a = [257.68]; b = [2 1 0 0 1 1 0 1 0 1 1 3]; out = makingChange(a); assert(isequal(out(:), b(:)))

err = 5768 err = 768 err = 768 err = 768 err = 268 err = 68 err = 68 err = 18 err = 18 err = 8 err = 3 change = 2 1 0 0 1 1 0 1 0 1 1 3

2   Pass
a = [135.01]; b = [1 0 1 1 1 0 0 0 0 0 0 1]; out = makingChange(a); assert(isequal(out(:), b(:)))

err = 3501 err = 3501 err = 1501 err = 501 err = 1 err = 1 err = 1 err = 1 err = 1 err = 1 err = 1 change = 1 0 1 1 1 0 0 0 0 0 0 1

3   Pass
a = [10035.99]; b = [100 0 1 1 1 0 0 1 1 2 0 4]; out = makingChange(a); assert(isequal(out(:), b(:)))

err = 3599 err = 3599 err = 1599 err = 599 err = 99 err = 99 err = 99 err = 49 err = 24 err = 4 err = 4 change = 100 0 1 1 1 0 0 1 1 2 0 4

### Community Treasure Hunt

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

Start Hunting!