Learn Dynamic Programming #2 - Topic Stream

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

КОМЕНТАРІ • 21

  • @bubblesort8760
    @bubblesort8760 2 місяці тому +2

    Such a great stream. Please keep up the good work.

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

    Again, great content brother. Keep this going.

  • @karantrivedi2271
    @karantrivedi2271 2 місяці тому +2

    Great content man , keep growing 🎉❤❤❤

  • @MithleshKumar-et9px
    @MithleshKumar-et9px 2 місяці тому +2

    you are a good teacher, greate videos

  • @UNKNOWN-yi7jn
    @UNKNOWN-yi7jn Місяць тому

    Great Content!! Do streams on segment trees.

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

    Loved this one, onto the next 🚴

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

    I think Trees then range-queries after graph would be great :)

  • @mohdalizilani9896
    @mohdalizilani9896 2 місяці тому +10

    after dp streams do streams of segement tree with all patterns

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

    thanks for video Shayan

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

    Sir please one more video for DP

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

    One request, In every video please dry run at least one test case.

  • @NguyenNgocTuan-A-bv2ww
    @NguyenNgocTuan-A-bv2ww 2 місяці тому

    will have topic 4 ?

  • @ArtyomDzagaryan
    @ArtyomDzagaryan 2 місяці тому +1

    why in second problem when s[i] = 'h' then dp[i][1] = min(dp[i-1][1], dp[i-1][0])/ i think that dp[i-1][1] < dp[i-1][0] because [1] we not delete and so we dont get point, but in dp[i-1][0] we delete 'h' so we get some poits for it and so should be true this dp[i-1][1] < dp[i-1][0] . where the problem

    • @VishalSingh-gm3qj
      @VishalSingh-gm3qj 2 місяці тому

      Bro thik a case where until index i we got x number of 'a' for making dp[i][1]= only 'h' we have to delete all 'a' them now at index i we have 'h' dp[i][0] tell us until index i we are deleted 'h' value is dp[i][0] . That tells us if we have "hhaaaa" cost(h)< cost(a) then deleting a is more beneficial than deleting 'h' thats why we are taking minimum of both according to me

  • @LegendaryCatcher
    @LegendaryCatcher 2 місяці тому +1

    Graphs after this if possible

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

    in the 4th problem if I am changing the order of taking max dp[c[i]] , i am getting a different answer , any thoughts on that?

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

      Also where is the case that the first ball should be taken with a*v[i] being handled here?