3351. Sum of Good Subsequences | DP | Don't Overthink here :)

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

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

  • @Its_Shubham_Negi
    @Its_Shubham_Negi 14 дней назад +6

    back to back 🔥.... i'm waiting for live by you 😢

  • @shristisrivastava7054
    @shristisrivastava7054 6 дней назад

    Amazing explanation! Looking forward to your videos on LeetCode contests.

  • @stith_pragya
    @stith_pragya 14 дней назад +1

    Thanks a ton for the solution video...........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
    subah se kisi ka solution samjh nhi aya, ab jake aya h iss video me........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @mukulkhanna26
    @mukulkhanna26 14 дней назад +2

    Bhai feeling so good to see you back please keep posting weekend contests please

  • @chiragsingh8323
    @chiragsingh8323 8 дней назад

    Wow What an explanation🔥

  • @mohitkukreja2174
    @mohitkukreja2174 13 дней назад +2

    Great to see you back :)

  • @rajatjindal9909
    @rajatjindal9909 9 дней назад

    brilliant explanation.

  • @ashutoshpandey1639
    @ashutoshpandey1639 9 дней назад

    Very good explanation. Kudos bhaiya🔥

  • @SATYAMGUPTA-c3k
    @SATYAMGUPTA-c3k 14 дней назад

    i can see the hard work bro !!! so easy to understand

  • @prajitbanerjee8226
    @prajitbanerjee8226 13 дней назад +2

    what would be approximate rating if this problem was on codeforces?

  • @LogicArena01
    @LogicArena01 14 дней назад

    Thanks for the solution

  • @sujalsingh7675
    @sujalsingh7675 12 дней назад

    comeback 🔥🔥

  • @ezcoding69
    @ezcoding69 9 дней назад +1

    can anyone explain ...why he is doing ..in sum[num] part dp[num-/+1] * num ....?

    • @Mayanksingh-ij4yl
      @Mayanksingh-ij4yl 5 дней назад

      Well he already explained it in video itself, let's take example of 3,4,5. For sum[5], We are adding sum[4] and along with it, 5 will also be added with all the good subsequences of 4. Well with sum[4], we already added the sum till value 4 but everytime the 5 will also get attached with good subsequences of 4.
      How many times??? Dp[4] times (5) will be attatched. What will be sum??? 5*dp[4].
      That's why. I hope this clears your doubt😊

  • @kshitijgarg7986
    @kshitijgarg7986 14 дней назад

    hi aryan i am lacking in dp can you suggest some resource frow where i can learn different types of questions of dp, i have idea about dp, but i cant apply dp on unseen question

    • @abhimanyuambastha2595
      @abhimanyuambastha2595 12 дней назад

      DP playlist by striver take u forward. Do those 60 problems and you will never struggle with dp again