I know IT is a DP problem but my recursive solution is giving wrong answer on small test cases only so help me to correct my recursive solution so that I can MEMOIZE IT
just help me to correct the recursive code will be very thankful
problem https://practice.geeksforgeeks.org/problems/minimum-cost-to-fill-given-weight-in-a-bag1956/1#
my code
https://ide.codingblocks.com/s/579568