DP-13 Rectangle Cutting | Problem Solving | Competitive Programming | DSA | CSES

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 44

  • @TUSHARJAIN-gv4fi
    @TUSHARJAIN-gv4fi 10 місяців тому +14

    Please upload the remaining videos. Eager to learn from you. Absolutely Fantastic Teaching & Explanation....

  • @Nabhivarsha
    @Nabhivarsha 9 місяців тому +7

    Sir please upload remaining dp questions videos
    we are waiting :)

  • @vivek.tiwary
    @vivek.tiwary Місяць тому +1

    Hey Priyansh, this series is amazing, could you add more here ? If possible could you cover leetcodes problems ?

  • @mystic3549
    @mystic3549 11 місяців тому +3

    the series is awesome ...PS your cute smile throughout the lecture makes it much more interesting :))

  • @viditgupta7088
    @viditgupta7088 Місяць тому

    You can prune some of the states as well. First one would be making a cut till n/2 and m/2. Because after that the same pair will be repeated. Second is if (n==1 || m==1) in that case you can simply return max(n,m)+1
    Memoized code
    ll dp[501][501];
    ll recur(ll n,ll m){
    if(n==m)return 0;
    if(n==1 || m==1){
    return max(n,m)-1;
    }
    if(dp[n][m]!=-1)return dp[n][m];
    ll ans = INT_MAX;
    for(ll i=1;in>>m;
    for(ll i=0;i

  • @RAJGUPTA-e4f
    @RAJGUPTA-e4f 3 місяці тому

    why you have not completed the playlist? you are teaching the DP nicely, please make remaining videos as well.

  • @mathy642
    @mathy642 4 місяці тому

    Thank you for such amazing explanation.

  • @CodeRocks-z6g
    @CodeRocks-z6g 9 місяців тому

    bro resume the playlist it helps a lot

  • @anishgiri2806
    @anishgiri2806 11 місяців тому +1

    I tried this one by myself and solved it using only half of the matrix by these formulas:
    for (int k = 1 ; k

    • @TLE_Eliminators
      @TLE_Eliminators  11 місяців тому +1

      It's great that you observed this, the only way to do this is to initialise a 2d vector with each vector being of different size but that would be just an overkill, so it is fine even if you don't optimize the space from O(a*b) to O(a*b/2)

  • @DarkKnight-dc6qs
    @DarkKnight-dc6qs 10 місяців тому +3

    Priyansh said that, DP videos will resume on 10 th december, then why the delay is happening??
    @Priyansh Agarwal

  • @GigaChad-sn4fr
    @GigaChad-sn4fr 10 місяців тому

    Eagerly waiting for the next video, it's been a month since the last upload.
    @priyanshagarwal

  • @devanshpandey3994
    @devanshpandey3994 11 місяців тому

    Great explanation , great series.

  • @codecreateriitp4751
    @codecreateriitp4751 6 місяців тому +1

    Bhai remaining videos upload kar de bar bar teacher hi change karate rahe kya dynamic programming ke liye. I will request you please make videos for the remaining problems

  • @PratikDongare-bh2vs
    @PratikDongare-bh2vs 10 місяців тому

    @priyansh next video when

  • @adityagarg3702
    @adityagarg3702 10 місяців тому

    when other videos will come?

  • @PratikDongare-bh2vs
    @PratikDongare-bh2vs 10 місяців тому +1

    next video when ?

  • @doodlelord
    @doodlelord 10 місяців тому +1

    Remaining videos?

  • @naive-fleek7420
    @naive-fleek7420 10 місяців тому +1

    next video when ??????

  • @AakashKumar-vf3dh
    @AakashKumar-vf3dh 11 місяців тому +1

    How is dp[i][j] making sure that it will return the minimum number of cuts for making squares as we have just handled base case but no where checking on square condition

    • @sumitpatil4732
      @sumitpatil4732 4 місяці тому

      If I==j is making sure that it is square

  • @ekanshsharma1309
    @ekanshsharma1309 9 місяців тому

    Sir plz resume the playlist😢

  • @CodingJoySoul
    @CodingJoySoul 11 місяців тому

    Will more videos come in this series?
    Eager to learn from you.

  • @arnav6885
    @arnav6885 9 місяців тому

    bro plz resume this playlist

  • @stutirajput8884
    @stutirajput8884 5 місяців тому

    Recursive solution please.

  • @SlateCode
    @SlateCode 2 місяці тому

    Where are the remaining Questions?

  • @austinscott4695
    @austinscott4695 11 місяців тому +1

    Thank you!

  • @rajneeshchaudhary9843
    @rajneeshchaudhary9843 11 місяців тому

    #day 13 done.

  • @naive-fleek7420
    @naive-fleek7420 11 місяців тому

    waiting for the next video
    pleasee its been 3 weeks now

  • @VrundLeuva-g5s
    @VrundLeuva-g5s 4 місяці тому

    understood

  • @musaddikkhan9720
    @musaddikkhan9720 11 місяців тому

    #day 13 Understod very well and again you add wrong link for question

  • @anishgiri2806
    @anishgiri2806 8 місяців тому

    The playlist will resume from 10th December of 2024?

  • @rahuljha3686
    @rahuljha3686 11 місяців тому

    What is the IDE that he uses?

  • @uclehong2605
    @uclehong2605 3 місяці тому

    i got TLE because n,m

  • @mashapoguajay3322
    @mashapoguajay3322 9 місяців тому

    you can explain na why are you using background music