What's the in the code
💡-0-n-knapsack
17manishms
(Manish Shah)
August 17, 2020, 10:20am
#1
sdevwrat
(Devwrat Sahu)
August 17, 2020, 10:33am
#2
@17manishms
if statement at line 12 of your code should be comparing i with wt[j] not with val[j].