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

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 47

  • @himanshubabbar7403
    @himanshubabbar7403 6 месяцев назад +13

    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 9 месяцев назад +15

    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

  • @codencode5546
    @codencode5546 10 месяцев назад +3

    i'm at 15:00 and i feel really interesting problem and explanation is crazy as always. ❤

  • @thespecialthing9067
    @thespecialthing9067 Месяц назад +1

    First video watched by him, and totally impressed by the explanation.

  • @yashkumar9671
    @yashkumar9671 6 месяцев назад +6

    16:45 maqsad mentionedddd.......mat bhoolna

  • @raisanjeeb42
    @raisanjeeb42 2 месяца назад

    Beautifully Explained bhaiya !
    Thanks,

  • @PrakulKhurana-sb1dw
    @PrakulKhurana-sb1dw 7 месяцев назад +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

  • @divy04
    @divy04 4 месяца назад +1

    man , what an effort and what an explanation, amazing, first time watched your video and subscribed

  • @yaminireddy3321
    @yaminireddy3321 Месяц назад

    very well explained.. Thankyou

  • @ayushtandon1719
    @ayushtandon1719 5 месяцев назад

    in the for loop(sz=1;....)
    it would be sz

  • @nikhilprakash729
    @nikhilprakash729 9 месяцев назад +2

    Understood Sir😊

  • @ram_kumar609
    @ram_kumar609 6 месяцев назад

    What a explainantion , Great Optimization. Really loved it

  • @tsharmi919
    @tsharmi919 21 день назад

    wow🔥🔥

  • @gp7060
    @gp7060 8 месяцев назад

    Bestest explanation so far

  • @ZimboiZana
    @ZimboiZana 4 месяца назад

    Amazing Explanation Bro....!! Keep it up 👏

  • @chandrachurmukherjeejucse5816
    @chandrachurmukherjeejucse5816 9 месяцев назад

    Great brother.

  • @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.

  • @satwiktatikonda764
    @satwiktatikonda764 9 месяцев назад

    waiting for this one so badly!!

  • @wacky199
    @wacky199 5 месяцев назад

    Man!! Good explanation, keep it up.

  • @top_g755
    @top_g755 5 месяцев назад

    Thank you brother 🙏

  • @harshkankariya4423
    @harshkankariya4423 6 месяцев назад

    Really great work you are doing bro , very good and deep explainantion 💥💥

  • @ritikshandilya7075
    @ritikshandilya7075 5 месяцев назад

    Thanks for amazing explanation

  • @ADITYARAJ-yv2tr
    @ADITYARAJ-yv2tr 5 месяцев назад +1

    at 6:48 bro remembered his maksad....

  • @asthajain2511
    @asthajain2511 4 месяца назад +2

    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 ?

  • @beginner9599
    @beginner9599 8 месяцев назад

    You own it!!!❤

  • @sudiptakhotel1204
    @sudiptakhotel1204 6 месяцев назад

    great explanation

  • @sarathkumardunga5240
    @sarathkumardunga5240 5 месяцев назад

    Great explanation. I guess the time complexity should be 2^n* nlogn

  • @vinamrasangal8436
    @vinamrasangal8436 5 месяцев назад

    thanks a lot !!!! 😊😊

  • @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.

  • @ashish3487
    @ashish3487 10 месяцев назад +1

    first view

  • @prakhargarg4166
    @prakhargarg4166 10 месяцев назад +1

    take more and more problems daily please

  • @ellagicham
    @ellagicham 8 месяцев назад

    It took some time for me to realise part 1 is not the left

  • @donabiswas6266
    @donabiswas6266 8 месяцев назад +1

    please make your vide short. i

  • @sakshammisra189
    @sakshammisra189 5 месяцев назад +3

    bkc yeh kaisa question tha

  • @shrshawn
    @shrshawn 5 месяцев назад +1

    mfking problem

  • @anantpawar782
    @anantpawar782 4 месяца назад +4

    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 месяца назад +2

      Striver did the problem with different contraints, dp solution isn't applicable for this problem.

  • @siddhantgupta4802
    @siddhantgupta4802 8 дней назад +1

    Time waste

  • @saikeerthanchiluka4027
    @saikeerthanchiluka4027 4 месяца назад +2

    Question ko ithna complex Kartha is bandha

  • @pragyaditya9208
    @pragyaditya9208 Месяц назад

    maksad🤣😆

  • @arjunc1482
    @arjunc1482 5 месяцев назад +1

    I watched this a unhealthy amount of times and finally understood🥲🥲

  • @anshitsrivastava5327
    @anshitsrivastava5327 4 месяца назад

    great explanation