A simple knapsack code not showing the correct output
This is my problem my knapsack code is given below and I am not getting the expected output it should give me the maximum profit that I could have gained from the inputted elements
This is my problem my knapsack code is given below and I am not getting the expected output it should give me the maximum profit that I could have gained from the inputted elements