1.

You are given infinite coins of denominations 1, 3, 4. What is the minimum number of coins required to achieve a sum of 7?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in an interview for job.My doubt stems from Coin Change Problem in portion Dynamic Programming of Data Structures & Algorithms II

Answer»

Correct option is (B) 2

The BEST explanation: A SUM of 7 can be ACHIEVED by using a minimum of two COINS {3,4}.



Discussion

No Comment Found

Related InterviewSolutions