Cody

# Problem 48. Making change

Solution 1827801

Submitted on 27 May 2019 by Anshil Kumar
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(:)))

h = 2 f = 1 tw = 0 t = 0 fi = 1 two = 1 o = 0 fc = 1 tfc = 0 tc = 1 ni = 1 p = 3 b = 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(:)))

h = 1 f = 0 tw = 1 t = 1 fi = 1 two = 0 o = 0 fc = 0 tfc = 0 tc = 0 ni = 0 p = 1 b = 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(:)))

h = 100 f = 0 tw = 1 t = 1 fi = 1 two = 0 o = 0 fc = 1 tfc = 1 tc = 2 ni = 0 p = 4 b = 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!