https://ide.codingblocks.com/s/279593.
Why this code is giving a TLE. please help me
Why it's giving TLE
Please fix the bug in the code if u can
hey u have same mistake ,
i,e u have not declared vector properly.
and also why u r declaring
dp[n][w] this will take too much space.
watch the tutorial video and chnage ur dp state.
Thnx aman for your help