InterviewSolution
Saved Bookmarks
| 1. |
Suppose you have coins of denominations 1,3 and 4. You use a greedy algorithm, in which you choose the largest denomination coin which is not greater than the remaining sum. For which of the following sums, will the algorithm produce an optimal answer?(a) 14(b) 10(c) 6(d) 100The question was asked in my homework.The query is from Coin Change Problem topic in chapter Dynamic Programming of Data Structures & Algorithms II |
|
Answer» Correct CHOICE is (d) 100 |
|