I am trying to solve this dp problem in iterative way , but i got WA this my code [https://ideone.com/Etw1q8] i am creating all possible sums then minimize for ans
562 Dividing coins
I am trying to solve this dp problem in iterative way , but i got WA this my code [https://ideone.com/Etw1q8] i am creating all possible sums then minimize for ans