im getting segmentation fault
0-1 KNAPSACK problem
hello @Bhavya_Goel
your code is correct,just declare dp array outside the function it will work.(reason memory capacity of global scope is more than the function)
im getting segmentation fault
hello @Bhavya_Goel
your code is correct,just declare dp array outside the function it will work.(reason memory capacity of global scope is more than the function)