28/28
Part 7 of 7 · What interviewers ask nextCheck yourself
Check yourself
5 questions
  1. 1.What does int(0.29 * 100) return?

  2. 2.Coins of 10 and 25 cents, amount 30 cents. What does greedy return?

  3. 3.You write count_ways with the amount loop outside and the coin loop inside. What does it return for 10 cents from coins of 1, 5 and 10?

  4. 4.The amount is 500 dollars and there are 6 coin values. About how many inner-loop steps does the bottom-up min_coins take?

  5. 5.You memoize the recursion with functools.cache and try the 1-cent coin first. What happens on the 500-dollar test with Python's default settings?

That's the lesson.
Now the problem this lesson builds to: 17 Coin change with dollar amounts (dynamic programming)Practice it