Make a full series on Competitive programming from beginner to end and Data Structures and algorithms. It's very hard to get good resources for free and not everyone can afford paid courses.
@avscode2705
3 жыл бұрын
You are great 🔥🔥🔥
@zskhan7496
3 жыл бұрын
@codeverse when striver course is coming on plus
@anirbanchatterjee9286
3 жыл бұрын
One return statement is missing.. if(ind == n) { if(weight > wt) { return -1e18; } } It will check the last case when f(3,12). If only we consider if(ind==n) it will return 0 in this case, which is not correct. We have to consider 12 also. That is another if statement. So we have to do one another nested if, which take of both.
@striver_79
3 жыл бұрын
There is if ( w > wt ) written above (ind == n) case, so it will take care of it, you no need to come into it and check..
@anirbanchatterjee9286
3 жыл бұрын
@@striver_79 ok sir. Now I understand.. thank u. When next video will come?
@samdarshikumar6488
3 жыл бұрын
bhaiya java mai b dsa ka kuch lao
@walktalkwithankit
3 жыл бұрын
Implment in java too
@techzone2577
3 жыл бұрын
hindi
@lakshsadhwani855
3 жыл бұрын
ye banda devta hei! 💯
@diveshsisodia7029
3 жыл бұрын
Moj kardi striver bhaiya ne 🔥🤟💯. Gajab aj tk pta hi ni tha kya hota h DP or hashing aj ek dum acche se smj aa gya or probably implement bhi krlunga. Great work. 🔥🔥💯❤❤
@kuri_music
3 жыл бұрын
thank u so much unacademy for bring striver in this channel
@calmyourmind5617
2 жыл бұрын
I want to know if overlapping subproblems only happen when there is duplicate element in array ?
@yashankaggarwal9601
3 жыл бұрын
sir you explained it really really well !! thanks alot for this video and please keep posting more content
Sir i have a question instead of returning negative value in conditions which exceeds the weight of knapsac, i can also not include them in our knapsac???
@kushagra4401
3 жыл бұрын
it would be better if u give the problem link too in the description.
@rangeyraghav130
3 жыл бұрын
Bhai CSES main book shop in dp section is the same problem or you can also attempt the problem D-Knapsack 1 from Atcoder dp educational contest.
Пікірлер: 32