7 kyu
Calculator: Coin Combination
1,721 of 2,679Aria_vt
Description:
The function takes cents value (int) and needs to return the minimum number of coins combination of the same value.
The function should return an array where
coins[0] = pennies ==> $00.01
coins[1] = nickels ==> $00.05
coins[2] = dimes ==> $00.10
coins[3] = quarters ==> $00.25
So for example:coinCombo(6) --> [1, 1, 0, 0]
Fundamentals
Algorithms
Similar Kata:
Stats:
Created | Nov 18, 2015 |
Published | Nov 18, 2015 |
Warriors Trained | 4646 |
Total Skips | 59 |
Total Code Submissions | 6622 |
Total Times Completed | 2679 |
JavaScript Completions | 1721 |
Python Completions | 871 |
Rust Completions | 157 |
C Completions | 60 |
COBOL Completions | 5 |
Julia Completions | 4 |
Total Stars | 38 |
% of votes with a positive feedback rating | 94% of 506 |
Total "Very Satisfied" Votes | 455 |
Total "Somewhat Satisfied" Votes | 39 |
Total "Not Satisfied" Votes | 12 |