Cody

Solution 2070571

Submitted on 27 Dec 2019 by Michael Iatskevich
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(:)))

a = 15768 a = 5768 a = 768 a = 268 a = 68 a = 18 a = 8 a = 3 a = 2 a = 1 a = 0

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(:)))

a = 3501 a = 1501 a = 501 a = 1 a = 0

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(:)))

a = 993599 a = 983599 a = 973599 a = 963599 a = 953599 a = 943599 a = 933599 a = 923599 a = 913599 a = 903599 a = 893599 a = 883599 a = 873599 a = 863599 a = 853599 a = 843599 a = 833599 a = 823599 a = 813599 a = 803599 a = 793599 a = 783599 a = 773599 a = 763599 a = 753599 a = 743599 a = 733599 a = 723599 a = 713599 a = 703599 a = 693599 a = 683599 a = 673599 a = 663599 a = 653599 a = 643599 a = 633599 a = 623599 a = 613599 a = 603599 a = 593599 a = 583599 a = 573599 a = 563599 a = 553599 a = 543599 a = 533599 a = 523599 a = 513599 a = 503599 a = 493599 a = 483599 a = 473599 a = 463599 a = 453599 a = 443599 a = 433599 a = 423599 a = 413599 a = 403599 a = 393599 a = 383599 a = 373599 a = 363599 a = 353599 a = 343599 a = 333599 a = 323599 a = 313599 a = 303599 a = 293599 a = 283599 a = 273599 a = 263599 a = 253599 a = 243599 a = 233599 a = 223599 a = 213599 a = 203599 a = 193599 a = 183599 a = 173599 a = 163599 a = 153599 a = 143599 a = 133599 a = 123599 a = 113599 a = 103599 a = 93599 a = 83599 a = 73599 a = 63599 a = 53599 a = 43599 a = 33599 a = 23599 a = 13599 a = 3599 a = 1599 a = 599 a = 99 a = 49 a = 24 a = 14 a = 4 a = 3 a = 2 a = 1 a = 0