Last updated
Was this helpful?
Last updated
Was this helpful?
Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), write code to calculate the number of ways of representing n cents.
Example
n =11
这题其实就是背包IV,每个元素无限取。