Strange Printer | INTUITIVE | Recursion | Memoization | NetEase | Leetcode-664

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 142

  • @codestorywithMIK
    @codestorywithMIK  ปีที่แล้ว +31

    Hi guys, please don’t worry if this qn seemed very hard. Actually this is based on Partition DP pattern. I didn’t mention this because i have not yet taught it in my channel.
    In my DP concepts playlist I will cover these topics.
    Dont worry, when I cover that topic, i will revisit this for sure and will also cover bottom up
    Thank you all ❤

  • @AlishaKhan-ww3io
    @AlishaKhan-ww3io ปีที่แล้ว +52

    All the debates are over now. This guy is the ultimate best tutor of DSA on TH-cam. Hats off

  • @aadil4236
    @aadil4236 ปีที่แล้ว +19

    Very Good explanation. many teachers put effort on solution, but you put effort on the explanation and that is why it was so good. I really understood the question and the solution with your explanation. the explanation was very good! keep it up bro!

  • @thekindspill
    @thekindspill ปีที่แล้ว +5

    You are the only guy who put all the efforts into the explanation. Code to fir humlog karlte hain.
    Watched some other videos since morning and all were just copy pasting the code without clear explanation. You are the best♥

  • @sonumondal9376
    @sonumondal9376 ปีที่แล้ว +9

    First time a teacher making us realise it's okk that you can't do and this one question can't judge your ability ❤❤❤❤❤❤❤❤ really thanks from heart sir becoz i am among those who got demotivated after not able to solve ❤❤ thanks sir

  • @sauravchandra10
    @sauravchandra10 3 หลายเดือนก่อน +2

    I had seen this video once in 2023 when I came across this question for the first time and it made sense then.
    Now watching it again in 2024 when I came across this question as a leetcode daily problem. I wasn't able to recall the approach I had taken back then and had to watch the entire video.
    Not sure if I will be able to solve this if I encounter this problem again.
    Such is the difficulty of this problem, or my lack of understanding.

  • @rohan8758
    @rohan8758 3 หลายเดือนก่อน +3

    Very very hardest question till now that i encounter in DP while i have solved over 450+ problems including 65% medium & 13% hard problems then also to think in the direction of question solution is not that much easy to me without @Mazhar Imran khan bhaiyan, hats off to you!

  • @harshit6871
    @harshit6871 3 หลายเดือนก่อน +16

    This video is a game-changer! 🌟 The way you teach DSA is simply amazing. I struggled to understand the question before, but your clear explanations and examples made everything click. You’re truly one of the best teachers out there. Thank you for making such helpful content!

  • @ugcwithaddi
    @ugcwithaddi ปีที่แล้ว +3

    Literally the only video on youtube which explain this question with clarity 🙌👌🏻

  • @codestorywithMIK
    @codestorywithMIK  ปีที่แล้ว +9

    A very very similar qn which can be solved using same code asked in CISCO Online Assessment few days ago - leetcode.com/problems/remove-boxes/

  • @password47403
    @password47403 ปีที่แล้ว +3

    Beyond mere explanation, I appreciate how you've made it this intuitive!
    Thanks for the motivation, it was much needed!
    Keep up the good work sir!

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      .
      Please note that, This topic is going to come with scratch in my DP concepts playlist.
      Actually this problem is based on partition dp pattern. I didn’t mention because i have not yet taught it in my channel.
      I promise i will revisit this qn when I teach Partition dp and will solve this qn again with
      1) Recursion + memo
      2) Bottom up
      ❤️❤️❤️

  • @souravjoshi2293
    @souravjoshi2293 ปีที่แล้ว +1

    you are a legend. The effort you put in explanation and intuition building is unmatchable

  • @wearevacationuncoverers
    @wearevacationuncoverers ปีที่แล้ว

    Koi itna acha kaise explain kar sakta hai yaar.
    I am short of words to describe his skill of teaching. L.E.G.E.N.D.DDDDDDDDDDDDDDDDDDD 💯

  • @mayankraj4763
    @mayankraj4763 3 หลายเดือนก่อน +1

    Hello.. Thank you for great explanation. Your explanation never made me feel it is a hard problem.
    However I would like to add something:
    We don't need an extra if (at line 17 of your code) because we are adding the equivalent if at line 10.
    Open for any criticism or suggestion.
    Thanks.

  • @rohitshah8904
    @rohitshah8904 ปีที่แล้ว +2

    Was unable to understand the question even ....now it's clear

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Thank you so much for watching ❤️😇

  • @uvs_6032
    @uvs_6032 ปีที่แล้ว +2

    Yeah this one is quite tricky, didnt even see the repeating subproblems at first.

  • @anonght2121
    @anonght2121 3 หลายเดือนก่อน +2

    Bhaiya please continue with your dp concepts playlist, it's been incredibly helpful !

  • @suvamroy6205
    @suvamroy6205 10 หลายเดือนก่อน +3

    Couldnt we do 1+(i,j-1)+(j+1,r) ? if (j+1 out of bound then return 0)

  • @Cicada-hq6yp
    @Cicada-hq6yp ปีที่แล้ว +10

    Sir isme lalach waale approach mein hamne solve(j,r) pe call kyu kiya jabki mujhe pata hai ki jo j pe character hai usi ko print kar raha hu main (as in ki pehle hi maine 'a' ke continuously character print kiye hai toh usime include kar lunga ) toh solve(j+1,r) ki cal nahi karenge ham?

    • @itskaaryan7
      @itskaaryan7 3 หลายเดือนก่อน

      because ham log uska cost pehle add nhi kiye hai so jo aage rahega usme se uska cost add kar lenge thats why we have started from j and not j+1 , becaue j par whi char hai jo l par tha aur jiska cost we havent added will be added when we do a recursive call for solve(j ,r). Hope this helps !!

  • @nitinbhattacharyya8784
    @nitinbhattacharyya8784 ปีที่แล้ว +1

    Aap bhagwan ho. Mai isi question ka solution samajhne ki koshish kar rha tha aur aapne daal diya.

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Thank you so much for watching 😇❤️

  • @sauravbiswajit8091
    @sauravbiswajit8091 ปีที่แล้ว +1

    Greaaaaaattttt sir....not even to understand the question in first go 😢...u r an absolute great teacher sir

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Thanks a lot. Means so much 🙏❤️😇

  • @mangeshshikrodkar6192
    @mangeshshikrodkar6192 3 หลายเดือนก่อน +1

    ap GOD admi ho. or in new terms GOAT (greatest of all times :) )

  • @iamnoob7593
    @iamnoob7593 2 หลายเดือนก่อน +1

    this is also valid right -> 1 + solve(i,j-1) + solve(j+1,r)

  • @thetoxicguy4783
    @thetoxicguy4783 3 หลายเดือนก่อน +1

    Please MIK don't stop making these videos🩷

  • @anuppatankar4294
    @anuppatankar4294 ปีที่แล้ว +3

    Great Explanation as always 👌🏻

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +2

      Thank you so much.
      Also, Please see my pinned comment 😇🙏❤️

    • @anuppatankar4294
      @anuppatankar4294 ปีที่แล้ว +2

      Yes 👍🏻@@codestorywithMIK

  • @minutelearn7663
    @minutelearn7663 3 หลายเดือนก่อน

    sir whenever I feel stuck u saved me

  • @mohithadiyal6083
    @mohithadiyal6083 ปีที่แล้ว +1

    Best explanation i could ever find

  • @AishwaryaAishwarya-e4l
    @AishwaryaAishwarya-e4l ปีที่แล้ว +1

    wow !!! thankyou sir !!! i really understooooood in one go!!! got confidence !! thankyou again

  • @dhairyachauhan6622
    @dhairyachauhan6622 ปีที่แล้ว +1

    very nice explaination just thinking the lalach wala tareeka is extremely hard. Thought i understand this one now but still i am not confident enough about the fact, that i will be able to solve similar questions, i guess the only thing in hand is practice.

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Dont worry,
      In my DP concepts playlist I will cover these topics. This is actually based on Partition DP.
      Dont worry, when I cover that topic, i will revisit this for sure and will also cover bottom up

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 ปีที่แล้ว +1

    Superb explanations til now going top

  • @Raj10185
    @Raj10185 ปีที่แล้ว +2

    Its a partation dp hard problem :-
    my implmentation is :-
    int n ;
    int dp[102][102];

    int solve(int i , int j , string s)
    {

    //base case
    if(i==j) //length 1 string only 1 turn need
    return 1;
    if(dp[i][j] != -1)
    return dp[i][j];

    // for all other cases we need to do the partataion
    // This is question of partation dp => aditya verma explanation
    int minturn = INT_MAX;

    for(int k = i ; k < j ; k++)
    {

    minturn = min(minturn , solve(i,k,s) + solve(k+1,j,s));

    }

    // 1 extra case is there if first and last char matches i.e i and j matches then
    // minturn will be reduce by 1

    if(s[i]==s[j])
    return dp[i][j] = minturn-1;

    return dp[i][j] = minturn;




    }








    int strangePrinter(string s) {

    n = s.size();

    if(n==1) return 1;
    memset(dp,-1,sizeof(dp));

    return solve(0,n-1,s);

  • @pranaymacharla6083
    @pranaymacharla6083 ปีที่แล้ว +2

    explain leetcode contest hard problems too , your explainations is very intuitive

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Sure thing ❤️😇
      Also, Please see my pinned comment 😇🙏❤️

  • @Danish-saifi1
    @Danish-saifi1 ปีที่แล้ว +2

    Aaj ke leetcode contest ka 4th and 3rd questions ka bhi video bna do sir

  • @prateekmohanty8315
    @prateekmohanty8315 ปีที่แล้ว +1

    Amazing explanation bhaiya , the question is very good and particition dp as it is a difficult topic , but you made this question look very much intuitive. Eagerly waiting for your particition dp playlist . Kudos to you

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Thank you so much.
      Partition dp coming soon in my DP Concepts and Qns playlist ❤️❤️❤️

  • @factsmadeiteasy9943
    @factsmadeiteasy9943 ปีที่แล้ว +1

    Suggetion: Start making videos on Contest Questions,next day after contest is over .

  • @aizad786iqbal
    @aizad786iqbal 3 หลายเดือนก่อน

    amazing, can you give an example jisme basic se better result aayega ?
    also please make the video on other approaches,
    thank you...

  • @xiaoshen194
    @xiaoshen194 ปีที่แล้ว +3

    Mere codeforces' expert friend ne ye ques khud se 40 min ke under solve kr liya😢

    • @vineetkumarmotwani474
      @vineetkumarmotwani474 ปีที่แล้ว +1

      btw I did a slight optimisation in ur code, this one:
      int greedy = INT_MAX;
      for(int j=i; j

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +3

      Hi there,
      I know why many people could solve this in 30-40 minutes. Because they are already aware about Partition DP.
      Please see my pinned comment 😇🙏❤️
      I promise you will be able to solve this. Just give me some time to complete Partition dp in my playlist 😇🙏

  • @shraddhamali21
    @shraddhamali21 3 หลายเดือนก่อน

    Excellent Explanation!! Thank you so much...but I didn't understand one part ....in lalach vali adjustment we can print last "ba" but what about the first "a" how it will get printed ..please explain

    • @AnkitKumar-ge3jn
      @AnkitKumar-ge3jn 3 หลายเดือนก่อน +1

      it will get printed when you print the last a... you are smart enough to print all the previous 'a' to the current one

    • @shraddhamali21
      @shraddhamali21 3 หลายเดือนก่อน

      @@AnkitKumar-ge3jn Ok thank you...

  • @rev_krakken70
    @rev_krakken70 3 หลายเดือนก่อน +1

    Was a classic mcm type question

  • @dipalisharma4682
    @dipalisharma4682 3 หลายเดือนก่อน +1

    I will make it easy hits different ❤❤

  • @ashmitpatel4829
    @ashmitpatel4829 ปีที่แล้ว +1

    Sir remove boxes leetcode 546 question was asked in OA in cisco
    It was very similar to this .Plz try to upload its solution.
    Ty for all your efforts sir❤

  • @aws_handles
    @aws_handles 3 หลายเดือนก่อน

    Legend ho sir aap

  • @challengeAceiver
    @challengeAceiver 3 หลายเดือนก่อน +1

    Bhaiya samajh to aaya but jab thoda bada string le raha hu 5 length ki then uspe dry run karne mein kafi problem aa rhi hai aap pls bade test case pe run karke bata sakte ho kya? Kafi help hojayegi

  • @AyushRaj-we2og
    @AyushRaj-we2og ปีที่แล้ว +7

    Hey MIK Bhaiya!
    Are LeetCode questions with a lot of downvotes worth solving?

    • @aadil4236
      @aadil4236 ปีที่แล้ว

      I have the same question

    • @AlishaKhan-ww3io
      @AlishaKhan-ww3io ปีที่แล้ว

      Same qn

    • @thekindspill
      @thekindspill ปีที่แล้ว

      Same qn bhai

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +5

      Generally qns get dislikes because of poor problem statement
      Dont worry, in interviews, they clear the qns well and explain well if you dont get it. You can check for explanation in discuss sections else leave the qn if its too badly explained

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 3 หลายเดือนก่อน

    NICE SUPER EXCELLENT MOTIVATED

  • @YashSinghal
    @YashSinghal ปีที่แล้ว +1

    dp questions are always interesting

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +3

      Indeed.
      Please note that, This topic is going to come with scratch in my DP concepts playlist.
      Actually this problem is based on partition dp pattern. I didn’t mention because i have not yet taught it in my channel.
      I promise i will revisit this qn when I teach Partition dp and will solve this qn again with
      1) Recursion + memo
      2) Bottom up
      ❤️❤️❤️

    • @YashSinghal
      @YashSinghal ปีที่แล้ว +1

      @@codestorywithMIK thank you. I have started watching the dp playlist 😄

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      ❤️❤️❤️

    • @YashSinghal
      @YashSinghal 3 หลายเดือนก่อน

      back to this amazing Q and video after 1 year!!

  • @gui-codes
    @gui-codes 4 หลายเดือนก่อน

    Man you are the best.

  • @pallavivarshney7972
    @pallavivarshney7972 9 หลายเดือนก่อน

    please make a video on solving remove boxes question.

  • @PatelIndra
    @PatelIndra 3 หลายเดือนก่อน

    Hi sir in this video for lalach case you have mentioned that we are tacking solve(i, j-1, s) + solve (j, r, s) instead of 1 + solve(i, j-1, s) + solve(j+1, r, s) so as per the your point of view both are same but if I take second one instead of first one than I am not getting right answer please explain me if anyone know about it

  • @iamnoob7593
    @iamnoob7593 2 หลายเดือนก่อน +1

    Thanks a ton

  • @floatingpoint7629
    @floatingpoint7629 ปีที่แล้ว +1

    Thanks for the explanation. dimagh kharab kar diya tha is question nay and whats the difference between matric chain multiplication and partioning dp ?

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Both refer to same pattern.
      I will cover this in full detail in my DP concepts playlist.
      And I am gonna revisit this qn again that time with recur memo as well as bottom up

    • @floatingpoint7629
      @floatingpoint7629 ปีที่แล้ว +1

      @@codestorywithMIK super. looking forward to it.

  • @masoomyf
    @masoomyf 3 หลายเดือนก่อน +4

    today's question...

  • @Rajat_maurya
    @Rajat_maurya ปีที่แล้ว +1

    How you are so good man❤

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      It means a lot Rajat.
      Thank you so much 🙏❤️

  • @Anand14527
    @Anand14527 ปีที่แล้ว +1

    Great

  • @nitinbhattacharyya8784
    @nitinbhattacharyya8784 ปีที่แล้ว +1

    Bhaiya leetcode 1330 par bhi agar ho sake video bana dijiyega. Math aur greedy hai solution ekdum samajh nahi aa rha

  • @pankajdewangan4137
    @pankajdewangan4137 ปีที่แล้ว +1

    very good sir

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Thank you so much for watching ❤️😇

  • @shudhanshujaiswal3022
    @shudhanshujaiswal3022 ปีที่แล้ว +1

    Thanks man!

  • @kuchbhi7811
    @kuchbhi7811 ปีที่แล้ว +2

    Hello sir ,mujhe leetcode k problems video dekhne k baad hi smjh aata h . Data Structure implementation ho jta h but logic kabhi nhi aa ta h problem solving k liye. Uske liye kya karu please help

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Hi there,
      Please cover DSA topic by topic.
      Fix one topic for a day, study it, solve easy qns, then medium qns. Skip hard as of now until you have practices easy mediums in a good number.

  • @10minutes_cs
    @10minutes_cs หลายเดือนก่อน

    15:26 , why are we not taking (j+1,r), to handle this .

  • @codingedtech
    @codingedtech ปีที่แล้ว +1

    super

  • @asutoshbikun
    @asutoshbikun 3 หลายเดือนก่อน

    Sir pls do contest qns also

    • @codestorywithMIK
      @codestorywithMIK  3 หลายเดือนก่อน

      This week’s Sunday Contest Qn-1 and 4
      th-cam.com/video/2d1ALG8wwDc/w-d-xo.htmlsi=fAMNs8g1YmKgDe4e
      ❤️

  • @codeandtalk6
    @codeandtalk6 ปีที่แล้ว +1

    ❤❤

  • @331sachinkiragi8
    @331sachinkiragi8 3 หลายเดือนก่อน

    From where did YOU learnt this all?

  • @kishan.17
    @kishan.17 ปีที่แล้ว +1

    bhaiya is cp necessory or good dsa enough for good compinies??.

    • @SanskarGarg
      @SanskarGarg ปีที่แล้ว

      Yes , to clear Online assessment independently you should do.

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      I am observing that in some OAs, tough qns are being asked. In such cases cp help.
      But many of my juniors and friends gave Amazon , Microsoft OAs and leetcode medium hard were enough for those qns.
      The main motive should be to first get clarity in each and every topic.
      Then start solving qns on those topics from easy -> Medium -> Hard -> expert

  • @Abhi_008
    @Abhi_008 ปีที่แล้ว +1

    This solution could be better....
    class Solution {
    int solveRec(int i, int j, string& s) {
    if(i == j) return 1;
    int ans = INT_MAX;
    for(int k = i; k < j; k++) {
    ans = min(ans, solveRec(i, k, s) + solveRec(k+1, j, s));
    }
    if(s[i] == s[j])
    ans = ans - 1;
    return ans;
    }
    int solveRec_Mem(int i, int j, string& s, vector& dp) {
    if(i == j) return 1;
    if(dp[i][j] != -1) return dp[i][j];
    int ans = INT_MAX;
    for(int k = i; k < j; k++) {
    ans = min(ans, solveRec_Mem(i, k, s, dp) + solveRec_Mem(k+1, j, s, dp));
    }
    return dp[i][j] = (s[i]==s[j]) ? ans - 1 : ans;
    }
    public:
    int strangePrinter(string s) {
    int n = s.length();
    // Recursive Approach
    // return solveRec(0, n - 1, s);
    // Recursion + Memoization
    vector dp(n+1, vector(n+1, -1));
    return solveRec_Mem(0, n - 1, s, dp);
    }
    };

  • @swapnilwalave1135
    @swapnilwalave1135 3 หลายเดือนก่อน

    hey anyoune can explain how tbgtgb string take 4 step bcz i dry run think on it many times it take 5 step

    • @future_engineer020
      @future_engineer020 3 หลายเดือนก่อน +1

      t(0,0)+bbbbb(1,5)+ggg(2,4)+t(3,3)

    • @future_engineer020
      @future_engineer020 3 หลายเดือนก่อน +2

      @swapnilwalave1135 in the bracket, I have written (starting pos, ending pos) hope this helps

    • @swapnilwalave1135
      @swapnilwalave1135 3 หลายเดือนก่อน

      Thank you

  • @vikneshcs4824
    @vikneshcs4824 หลายเดือนก่อน

    How parition in 1,2,3,4 would result in ans 1,2,3,4 fir abaaaaa

  • @it047_prakhar8
    @it047_prakhar8 3 หลายเดือนก่อน

    i am the best❤

  • @AnandKumar-kz3ls
    @AnandKumar-kz3ls ปีที่แล้ว +1

    i dont have enough brain cells for this question 😢

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว

      Hello Anand,
      Please see my pinned comment 😇🙏❤️

  • @RIYAGUPTA-qi1dw
    @RIYAGUPTA-qi1dw ปีที่แล้ว +2

    bhaiya seriously aaj ka question bilkul samajh nhi aaya🥲🥲🥲🥲

    • @wearevacationuncoverers
      @wearevacationuncoverers ปีที่แล้ว

      Same. I could only understand after watching this video 😢

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +2

      Dont worry,
      In my DP concepts playlist I will cover these topics. This is actually based on Partition DP.
      Dont worry, when I cover that topic, i will revisit this for sure and will also cover bottom up

    • @RIYAGUPTA-qi1dw
      @RIYAGUPTA-qi1dw ปีที่แล้ว +1

      @@codestorywithMIK thanks bhaiya

  • @ashutosh61290
    @ashutosh61290 ปีที่แล้ว

    bhaiya aapka naam kya hai??

  • @ManojKrVerma-vw4dx
    @ManojKrVerma-vw4dx ปีที่แล้ว +1

    For me it was difficult 😢😢

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Dont worry,
      In my DP concepts playlist I will cover these topics. This is actually based on Partition DP.
      Dont worry, when I cover that topic, i will revisit this for sure and will also cover bottom up

  • @vishalkurve93
    @vishalkurve93 3 หลายเดือนก่อน

    Can anyone help me memoize this recursive code.It is working but it i sgiving TLE at 17th test case.
    Please help me.
    class Solution {
    public:
    int solve(int i,string temp,string s)
    {
    if(s==temp)
    return 0;
    if(i>=s.length())
    {
    return 1000000;
    }
    int minoperations=1000000;
    for(int start =i;start

  • @GajendraGour-of9it
    @GajendraGour-of9it 3 หลายเดือนก่อน

    anyone solve this problem in java

  • @sourav_22_11
    @sourav_22_11 ปีที่แล้ว +2

    thnx a lot brother , plz upload hard dp coders as much as possible

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Sure thing
      Thank you so much for watching ❤️😇

  • @rode_atharva
    @rode_atharva 3 หลายเดือนก่อน

    agar samaj nahi ata na to me is printer ko kude me fek deta yarr sachme. kya vahiyat printer hai😂

  • @GauravSingh-v4p
    @GauravSingh-v4p ปีที่แล้ว +1

    yaar aaj k samjh nhi aaya

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +1

      Hi there,
      Apologies if it was not much clear. I will definitely improve more on that. However would you kindly share which part exactly you couldn’t get ?

    • @GauravSingh-v4p
      @GauravSingh-v4p ปีที่แล้ว +1

      @@codestorywithMIK i am not able to understand the explanations like how i,j ,l,r realated don't know. not able to make image of the solution or explanation in my mind

    • @MounikaEMB
      @MounikaEMB ปีที่แล้ว +1

      same here🥲

    • @codestorywithMIK
      @codestorywithMIK  ปีที่แล้ว +3

      Noted guys
      I really appreciate your feedback.
      Please don’t worry. This topic is going to come with scratch in my DP concepts playlist.
      Actually this problem is based on partition dp pattern. I didn’t mention because i have not yet taught it in my channel.
      I promise i will revisit this qn when I teach Partition dp and will solve this qn again with
      1) Recursion + memo
      2) Bottom up
      ❤️❤️❤️

    • @yatri6329
      @yatri6329 ปีที่แล้ว +1

      @@codestorywithMIK thanks sir ♥️♥️

  • @rzeee
    @rzeee 3 หลายเดือนก่อน

    ❤❤