Skip to main content
Loading page content
Explore
Learnings
Mental Math
Dashboard
More
Algo
Flow
Visualizers
Learnings
Quizzes
Mental Math
Dashboard
Log in
Sign up
Loading quiz challenge
Back to Visualizer
Question 1 of 5
Classic Problems
• Coin Change Problem
In the Coin Change problem (fewest coins to make amount A), what is the base case for amount 0?
A
dp[0] = infinity
B
dp[0] = 0
C
dp[0] = -1
D
dp[0] = 1