Coins
Given an infinite number of quarters (25¢), dimes (10¢), nickels (5¢), and pennies (1¢), write code to calculate the number of ways to represent n cents.
Examples:
represent(10) → 4
(10, 5+5, 5+1+1+1+1+1, 1+1+...+1)
represent(0) → 1 (one way: use no coins)
Hints
solution.py
Python ready
Test Output
▶
Click "Run Tests" to execute your code