Answers
Matlab Cody Problem 48. Making change
- Course
- Matlab Cody
- Institution
- Massachusetts Institute Of Technology
Problem 48. Making change Created by Cody Team in Cody Challenge Given an amount of currency, return a vector of this form: [ 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = 257.68 Output b is [2 1 0 0 1 1 0 1 0 1 1 3] Always use bigger bills/coins if possible.
[Show more]