You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t[i][j]=max(val[i-1]+t[i][j-wt[i-1]],t[i-1][j]); //bss yhin pae change hoga agr element include kr lia hai fir bhi elemnt include ho skta hai in unbounded knapsack so we will process even after includinbg the element.