doubt : Need some clarity 1. if 2, 4, - 5 is value than the weight array should be 1 , 2, 3 or weight array will just be constructed for 2 5 as 1 , 3 or 1 , 2 2. which is the case when bag can’t be filled because according to me since there are infinite items it will always be filled(give an example)
this my code link : https://ide.codingblocks.com/s/188765
please correct it and specify my error