Giving wrong output
@anubhavb11
Return 0 when (n == 0) because 0 coins are needed to build a sum equal to zero. That will solve the issue.
If my answer was able to answer your query, please mark the doubt as resolved.
@anubhavb11
Return 0 when (n == 0) because 0 coins are needed to build a sum equal to zero. That will solve the issue.
If my answer was able to answer your query, please mark the doubt as resolved.