was stuck on this problem for 5 hours, didn't know how to optimise it further. Came across this video and Man!!! what an explaination. HATS OFF!!
@Entertainment_for_kida8 ай бұрын
dp solution will works if array has only positive elements . but if array has negative numbers . and if we get the total sum is negative then in dp vector creation problem will occur because of this negative total sum and compailer will shows heap-buffer-overflow
@priyanshkumar174 ай бұрын
yes
@tejasmundhe87734 ай бұрын
use map
@priyanshkumar174 ай бұрын
@@tejasmundhe8773 yes
@tsunithkumar880126 күн бұрын
How to do it @@tejasmundhe8773
@codencode55469 ай бұрын
i'm at 15:00 and i feel really interesting problem and explanation is crazy as always. ❤
@thespecialthing906725 күн бұрын
First video watched by him, and totally impressed by the explanation.
@yashkumar96716 ай бұрын
16:45 maqsad mentionedddd.......mat bhoolna
@ayushtandon17195 ай бұрын
in the for loop(sz=1;....) it would be sz
@asthajain25113 ай бұрын
Bhaiya I knew that binary search have to be used but ...to form the equation and utilize it to find the remaining elements .....how to build intuition for such problems ?
@PrakulKhurana-sb1dw7 ай бұрын
how dp will work partition arrays must always of size n, but we are saying can we generate a given target from subsequence but that may or may not be size n
@divy044 ай бұрын
man , what an effort and what an explanation, amazing, first time watched your video and subscribed
@raisanjeeb422 ай бұрын
Beautifully Explained bhaiya ! Thanks,
@yaminireddy3321Ай бұрын
very well explained.. Thankyou
@nikhilprakash7299 ай бұрын
Understood Sir😊
@sripatisuryateja18504 ай бұрын
I don't actually comment on videos but after seeing your explanation, I had to!! Amazing explanation bhaiya, your channel deserves more subs and more views!! I really hope you will rock in the future.
@sarathkumardunga52404 ай бұрын
Great explanation. I guess the time complexity should be 2^n* nlogn
@ADITYARAJ-yv2tr4 ай бұрын
at 6:48 bro remembered his maksad....
@top_g7555 ай бұрын
Thank you brother 🙏
@samadsiddiqui39562 ай бұрын
I think this dp solution will only work if array has all positive or all negative values , and also in this question there is a constaint that we can choose only N/2 elements, which also not fulfilled in the dp solution.
@ram_kumar6095 ай бұрын
What a explainantion , Great Optimization. Really loved it
@tsharmi9195 күн бұрын
wow🔥🔥
@ritikshandilya70754 ай бұрын
Thanks for amazing explanation
@chandrachurmukherjeejucse58169 ай бұрын
Great brother.
@gp70607 ай бұрын
Bestest explanation so far
@harshkankariya44235 ай бұрын
Really great work you are doing bro , very good and deep explainantion 💥💥
@satwiktatikonda7649 ай бұрын
waiting for this one so badly!!
@ZimboiZana4 ай бұрын
Amazing Explanation Bro....!! Keep it up 👏
@vinamrasangal84365 ай бұрын
thanks a lot !!!! 😊😊
@sudiptakhotel12046 ай бұрын
great explanation
@wacky1994 ай бұрын
Man!! Good explanation, keep it up.
@beginner95997 ай бұрын
You own it!!!❤
@prakhargarg41669 ай бұрын
take more and more problems daily please
@ellagicham7 ай бұрын
It took some time for me to realise part 1 is not the left
@ashish34879 ай бұрын
first view
@donabiswas62668 ай бұрын
please make your vide short. i
@shrshawn5 ай бұрын
mfking problem
@sakshammisra1894 ай бұрын
bkc yeh kaisa question tha
@pragyaditya920822 күн бұрын
maksad🤣😆
@anantpawar7823 ай бұрын
Hats off to your Efforts but Very Worst Explanation... Ek hi cheez jo striver ne explain nhi ki usme hi problem ho rahi hai.. Whole dsa on youtube is worst ever except striver.
@KeigoEdits2 ай бұрын
Striver did the problem with different contraints, dp solution isn't applicable for this problem.
@saikeerthanchiluka40274 ай бұрын
Question ko ithna complex Kartha is bandha
@arjunc14824 ай бұрын
I watched this a unhealthy amount of times and finally understood🥲🥲