Meet in the Middle | 2035. Partition Array Into Two Arrays to Minimize Sum Difference | Day 022

  Рет қаралды 12,618

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 46
@himanshubabbar7403
@himanshubabbar7403 5 ай бұрын
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_kida
@Entertainment_for_kida 8 ай бұрын
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
@priyanshkumar17
@priyanshkumar17 4 ай бұрын
yes
@tejasmundhe8773
@tejasmundhe8773 4 ай бұрын
use map
@priyanshkumar17
@priyanshkumar17 4 ай бұрын
@@tejasmundhe8773 yes
@tsunithkumar8801
@tsunithkumar8801 26 күн бұрын
How to do it ​@@tejasmundhe8773
@codencode5546
@codencode5546 9 ай бұрын
i'm at 15:00 and i feel really interesting problem and explanation is crazy as always. ❤
@thespecialthing9067
@thespecialthing9067 25 күн бұрын
First video watched by him, and totally impressed by the explanation.
@yashkumar9671
@yashkumar9671 6 ай бұрын
16:45 maqsad mentionedddd.......mat bhoolna
@ayushtandon1719
@ayushtandon1719 5 ай бұрын
in the for loop(sz=1;....) it would be sz
@asthajain2511
@asthajain2511 3 ай бұрын
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-sb1dw
@PrakulKhurana-sb1dw 7 ай бұрын
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
@divy04
@divy04 4 ай бұрын
man , what an effort and what an explanation, amazing, first time watched your video and subscribed
@raisanjeeb42
@raisanjeeb42 2 ай бұрын
Beautifully Explained bhaiya ! Thanks,
@yaminireddy3321
@yaminireddy3321 Ай бұрын
very well explained.. Thankyou
@nikhilprakash729
@nikhilprakash729 9 ай бұрын
Understood Sir😊
@sripatisuryateja1850
@sripatisuryateja1850 4 ай бұрын
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.
@sarathkumardunga5240
@sarathkumardunga5240 4 ай бұрын
Great explanation. I guess the time complexity should be 2^n* nlogn
@ADITYARAJ-yv2tr
@ADITYARAJ-yv2tr 4 ай бұрын
at 6:48 bro remembered his maksad....
@top_g755
@top_g755 5 ай бұрын
Thank you brother 🙏
@samadsiddiqui3956
@samadsiddiqui3956 2 ай бұрын
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_kumar609
@ram_kumar609 5 ай бұрын
What a explainantion , Great Optimization. Really loved it
@tsharmi919
@tsharmi919 5 күн бұрын
wow🔥🔥
@ritikshandilya7075
@ritikshandilya7075 4 ай бұрын
Thanks for amazing explanation
@chandrachurmukherjeejucse5816
@chandrachurmukherjeejucse5816 9 ай бұрын
Great brother.
@gp7060
@gp7060 7 ай бұрын
Bestest explanation so far
@harshkankariya4423
@harshkankariya4423 5 ай бұрын
Really great work you are doing bro , very good and deep explainantion 💥💥
@satwiktatikonda764
@satwiktatikonda764 9 ай бұрын
waiting for this one so badly!!
@ZimboiZana
@ZimboiZana 4 ай бұрын
Amazing Explanation Bro....!! Keep it up 👏
@vinamrasangal8436
@vinamrasangal8436 5 ай бұрын
thanks a lot !!!! 😊😊
@sudiptakhotel1204
@sudiptakhotel1204 6 ай бұрын
great explanation
@wacky199
@wacky199 4 ай бұрын
Man!! Good explanation, keep it up.
@beginner9599
@beginner9599 7 ай бұрын
You own it!!!❤
@prakhargarg4166
@prakhargarg4166 9 ай бұрын
take more and more problems daily please
@ellagicham
@ellagicham 7 ай бұрын
It took some time for me to realise part 1 is not the left
@ashish3487
@ashish3487 9 ай бұрын
first view
@donabiswas6266
@donabiswas6266 8 ай бұрын
please make your vide short. i
@shrshawn
@shrshawn 5 ай бұрын
mfking problem
@sakshammisra189
@sakshammisra189 4 ай бұрын
bkc yeh kaisa question tha
@pragyaditya9208
@pragyaditya9208 22 күн бұрын
maksad🤣😆
@anantpawar782
@anantpawar782 3 ай бұрын
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.
@KeigoEdits
@KeigoEdits 2 ай бұрын
Striver did the problem with different contraints, dp solution isn't applicable for this problem.
@saikeerthanchiluka4027
@saikeerthanchiluka4027 4 ай бұрын
Question ko ithna complex Kartha is bandha
@arjunc1482
@arjunc1482 4 ай бұрын
I watched this a unhealthy amount of times and finally understood🥲🥲
@anshitsrivastava5327
@anshitsrivastava5327 4 ай бұрын
great explanation
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 36 МЛН
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
Meet in the Middle | Tutorial & Problems
1:20:20
Errichto Hard Algorithms
Рет қаралды 26 М.
Meet in the middle algorithm
15:01
Techdose
Рет қаралды 18 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 495 М.
Fenwick Tree Complete | Point Update & Range Query | Part - I
44:04
678. Valid Parenthesis String | DP | Stacks | 2 Pointers | 3 Ways
38:32
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 193 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 36 МЛН