3122. Minimum Number of Operations to Satisfy Conditions | DP & Not Greedy

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

КОМЕНТАРІ • 21

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

    UNDERSTOOD , This was not a typical standard Recursion/dp question , I think this question needs to be marked as HARD. Thanks for the wonderful explanation.

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

    Good Explaination

  • @Syed_Shifat
    @Syed_Shifat 7 місяців тому

    I regularly wait for your videos after the contest to solve the problems that I couldn't solve there. Keep up the good work, man;

  • @tanveeralam3971
    @tanveeralam3971 6 місяців тому

    amazing explanation hats off to you

  • @devmadaan5146
    @devmadaan5146 7 місяців тому

    never worry for any engagement issues ! i will always be with u :)

  • @HighOctane-k4m
    @HighOctane-k4m 8 місяців тому +1

    thank you sir to clear our concept

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

    Updated Discord Link - discord.gg/vwUAz2pEHZ ❤
    .
    Practice Greedy - ua-cam.com/play/PLEL7R4Pm6EmDVCYD5EkNv08vSOC4kA1_z.html
    Practice DP - ua-cam.com/play/PLEL7R4Pm6EmCXe8803IBAPWVsHlTVrtOp.html

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

    bro , your explanation was superb , gonna try it by myself now , Thank you for the video

  • @uzairkhan-zq7fh
    @uzairkhan-zq7fh 8 місяців тому +1

    Very detailed explanation thanks aryan

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

    Superb ❤

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

    thanks for providing such a detailed explaination, 'was much needed++

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

    Thanks for the explanation!

  • @silverpoision
    @silverpoision 7 місяців тому +1

    Bro I am confused about the time complexity. If at every index we call the recursive function 8 times then the time complexity of the function should be 9^m na? Please explain me what I am missing because I have read some blogs on calculating time complexity of recursive functions and this is what they exactly say.

    • @IK-xk7ex
      @IK-xk7ex 7 місяців тому +1

      We use cache, that reduce the time complexity. So you have to calculate each combination only and only once.

    • @IK-xk7ex
      @IK-xk7ex 7 місяців тому +1

      Without caching (vector dp) you will repeat calculations for the same combinations again and again.

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

    01:42

  • @IK-xk7ex
    @IK-xk7ex 7 місяців тому

    Thank you for the video, but I'm still stuck to convert TopDown solution to BottomUp. I understand what we need to have 2D array, which [rows][10] and fill it Int.max. But then I have no idea what to do :)

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

    🎉🎉thanks bro

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

    support++

  • @ashutoshraj7171
    @ashutoshraj7171 8 місяців тому +3

    what if, if you only provide the solution (iff)

  • @dileepkumar-hm5wk
    @dileepkumar-hm5wk 8 місяців тому +3

    Not clear