Data structures and algorithms
Using an unlimited supply of coins worth 1, 3 and 4, in how many ways can you…
AppliedNumeric answer
Using an unlimited supply of coins worth 1, 3 and 4, in how many ways can you make 6 if the order of the coins does not matter?
Answer with a number. Fractions, powers and expressions like 23/6 or C(52,5) are read correctly in practice.
The worked solution is in Premium
The answer, the full working and the one idea to take away – for this and all 1,322 questions in the bank. Answer it in practice and your working is marked, with a known mistake named when you make one.
Report an issue with this question
Learn the method
Dynamic programming, and why it is the same as an EV recursion
Of the kind reported at
More data structures and algorithms questions
- You roll a fair six-sided die up to three times, stopping whenever you like and…Advanced · Premium
- You climb a staircase of 10 steps, taking one or two steps at a time.Foundation · Premium
- Climbing a staircase, part 1 of 3Foundation · Premium
- What is the expected number of fair coin flips to see two heads in a row?Applied · Premium
- What is the edit distance between "kitten" and "sitting"?Applied · Premium
- What most often decides whether a dynamic programming solution is feasible?Applied · Premium