@Azhar , also for 1st question u r trying Array DS will suffices. Its 
Standard Coin Change Problem , u need to solve subproblem 1st , store it in 
extra array to avoid recalculation ,  if u are able to produce the sum less 
given sum then u can use same approach to reach desired sum . it uses the 
memozation (DP) approach solve efficiently .

hope it help. 


Thanks
Shashank Mani
CSE, BIT Mesra
http://shashank7s.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/N3nEi3dNwR0J.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to