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

More By Author:

Check out these other kata created by Aria_vt

Stats:

CreatedNov 18, 2015
PublishedNov 18, 2015
Warriors Trained4646
Total Skips59
Total Code Submissions6622
Total Times Completed2679
JavaScript Completions1721
Python Completions871
Rust Completions157
C Completions60
COBOL Completions5
Julia Completions4
Total Stars38
% of votes with a positive feedback rating94% of 506
Total "Very Satisfied" Votes455
Total "Somewhat Satisfied" Votes39
Total "Not Satisfied" Votes12
Ad
Contributors
  • Aria_vt Avatar
  • CrazyMerlyn Avatar
  • myjinxin2015 Avatar
  • imjasonmiller Avatar
  • FArekkusu Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • FaradayLab Avatar
  • akar-0 Avatar
Ad