CaratLane interview problem

GIven coins 1,2,7.Find the minimum denominations needed for particular n,where 0 < n <=10^7.

Comments (1)