Correct Change AdvancedOptional Node
You are (again) given three numbers as input:
sum. Can you select the exact change from your coins to reach a
sum of cents? Return
true if you can, and
In this challenge, you can be given any number of nickels and pennies.
Guideline: You do not need any loops to solve this challenge. You can build on your code from the previous challenge to solve this one.
Boilerplate code is provided for Java. For other languages, read in the numbers from the standard input in the following format.
- The input starts with N, the number of cases.
- N lines follow, which each contains 3 integers in order for
Print out true or false to the output for each case on its own line.