...

/

Challenge: Counting Money

Challenge: Counting Money

Given infinite quarters, dimes, nickels and pennies, calculate the minimum number of coins to represent a number v.

Problem statement:

Given an infinite number of quarters (25cents)(25 cents), dimes (10cents)(10 cents), nickels (5cents)(5 cents), and pennies (1cent)(1 cent), implement a function to calculate the minimum number of coins to represent vv cents.

Access this course and 1400+ top-rated courses and projects.