Dynamic Programming Doubt , The Coin Change Problem

Revision en1, by nbz_11, 2017-07-22 01:20:30

I am trying to solve this problem https://www.hackerrank.com/challenges/coin-change/problem I am getting WA on 8 testcases , but am not able to point out my mistake . My dp state seems fine to me. Can someone please help me find my mistake in this code . Thanks in advance :) Link to my code https://ideone.com/hT6iMm

Tags #dp, #hackerrank, coin change, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English nbz_11 2017-07-22 01:24:26 12 Tiny change: 'deone.com/hT6iMm' -> 'deone.com/WpjdKJ'
en1 English nbz_11 2017-07-22 01:20:30 371 Initial revision (published)