Тёмный

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

Aryan Mittal
Подписаться 46 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@himanshubabbar7403
@himanshubabbar7403 3 месяца назад
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 6 месяцев назад
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 2 месяца назад
yes
@tejasmundhe8773
@tejasmundhe8773 2 месяца назад
use map
@priyanshkumar17
@priyanshkumar17 2 месяца назад
@@tejasmundhe8773 yes
@raisanjeeb42
@raisanjeeb42 11 часов назад
Beautifully Explained bhaiya ! Thanks,
@asthajain2511
@asthajain2511 Месяц назад
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 ?
@codencode5546
@codencode5546 7 месяцев назад
i'm at 15:00 and i feel really interesting problem and explanation is crazy as always. ❤
@PrakulKhurana-sb1dw
@PrakulKhurana-sb1dw 5 месяцев назад
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
@yashkumar9671
@yashkumar9671 4 месяца назад
16:45 maqsad mentionedddd.......mat bhoolna
@divy04
@divy04 2 месяца назад
man , what an effort and what an explanation, amazing, first time watched your video and subscribed
@samadsiddiqui3956
@samadsiddiqui3956 12 дней назад
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.
@sripatisuryateja1850
@sripatisuryateja1850 2 месяца назад
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.
@ram_kumar609
@ram_kumar609 3 месяца назад
What a explainantion , Great Optimization. Really loved it
@ZimboiZana
@ZimboiZana 2 месяца назад
Amazing Explanation Bro....!! Keep it up 👏
@harshkankariya4423
@harshkankariya4423 3 месяца назад
Really great work you are doing bro , very good and deep explainantion 💥💥
@ayushtandon1719
@ayushtandon1719 2 месяца назад
in the for loop(sz=1;....) it would be sz
@wacky199
@wacky199 2 месяца назад
Man!! Good explanation, keep it up.
@ADITYARAJ-yv2tr
@ADITYARAJ-yv2tr 2 месяца назад
at 6:48 bro remembered his maksad....
@nikhilprakash729
@nikhilprakash729 7 месяцев назад
Understood Sir😊
@gp7060
@gp7060 5 месяцев назад
Bestest explanation so far
@ritikshandilya7075
@ritikshandilya7075 2 месяца назад
Thanks for amazing explanation
@top_g755
@top_g755 3 месяца назад
Thank you brother 🙏
@beginner9599
@beginner9599 5 месяцев назад
You own it!!!❤
@anshitsrivastava5327
@anshitsrivastava5327 2 месяца назад
great explanation
@sarathkumardunga5240
@sarathkumardunga5240 2 месяца назад
Great explanation. I guess the time complexity should be 2^n* nlogn
@satwiktatikonda764
@satwiktatikonda764 7 месяцев назад
waiting for this one so badly!!
@vinamrasangal8436
@vinamrasangal8436 3 месяца назад
thanks a lot !!!! 😊😊
@chandrachurmukherjeejucse5816
@chandrachurmukherjeejucse5816 7 месяцев назад
Great brother.
@ashish3487
@ashish3487 7 месяцев назад
first view
@prakhargarg4166
@prakhargarg4166 7 месяцев назад
take more and more problems daily please
@ellagicham
@ellagicham 5 месяцев назад
It took some time for me to realise part 1 is not the left
@donabiswas6266
@donabiswas6266 6 месяцев назад
please make your vide short. i
@shrshawn
@shrshawn 3 месяца назад
mfking problem
@sakshammisra189
@sakshammisra189 2 месяца назад
bkc yeh kaisa question tha
@anantpawar782
@anantpawar782 Месяц назад
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 4 дня назад
Striver did the problem with different contraints, dp solution isn't applicable for this problem.
@saikeerthanchiluka4027
@saikeerthanchiluka4027 2 месяца назад
Question ko ithna complex Kartha is bandha
@arjunc1482
@arjunc1482 2 месяца назад
I watched this a unhealthy amount of times and finally understood🥲🥲
@sudiptakhotel1204
@sudiptakhotel1204 4 месяца назад
great explanation
Далее
Harder Than It Seems? 5 Minute Timer in C++
20:10
Просмотров 169 тыс.
Fast Inverse Square Root - A Quake III Algorithm
20:08
C++ vs Rust: which is faster?
21:15
Просмотров 393 тыс.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Просмотров 294 тыс.
The Secret Science of Perfect Spacing
9:40
Просмотров 418 тыс.