Solidify the DP Formulation! | Day 2 Doubt Session | Dynamic Programming | Vivek Gupta

Поділитися
Вставка
  • Опубліковано 28 гру 2024
  • In this DP workshop, we are going to learn many DP formulations that are going to make solving DP problems easy for you. Register today if you haven’t.
    🔴 Practice Problem Link: www.learning.a...
    🔴 Registration link for the Workshop: algozenith.com...
    🔴 Discord for Discussion: / discord
    ✨ Hashtags ✨
    #VivekGupta #dpworkshop #CPStreams #codechef #codeforces #engineering #internship #DSA
    ____________________________________________________
    Linkedin: / vivekgiit. .
    Instagram: / acraider_here

КОМЕНТАРІ • 33

  • @shahnaj6102
    @shahnaj6102 6 місяців тому +5

    give the link for cleaning window problem please

  • @Live-hh6li
    @Live-hh6li 2 роки тому +2

    Solved all
    Though I did cses DP
    But these problems were refreshing
    Thanks Vivek

  • @satyampatidar5848
    @satyampatidar5848 2 роки тому +1

    22:40
    we can reduce the space to O(N*W)
    In the transition part
    for(int take=0;taken

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

    Great Video man
    Very nice

  • @adityamishra4458
    @adityamishra4458 2 роки тому +1

    These session helps develop thinking. Great bro. Waiting for more and more content from you

  • @blitztour5924
    @blitztour5924 6 місяців тому +5

    Solved Brick Colouring on my own🤤 Felt Amazing
    Thank you for this series.
    Though that long long thing took me some time to figure out😂

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

    Great explanation 👍

  • @SiddhantKadam-vn2tk
    @SiddhantKadam-vn2tk 10 місяців тому

    thank you vivek bhai for the sereies you are clearing all the concept and the quiz section which you take in begining is unique and good brush up for session

  • @nce2910
    @nce2910 Рік тому

    Great Session💥

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

    at 17:09 , i dont get the use of min(Wsum , W) ,especifically the use of Wsum

  • @partha231
    @partha231 2 роки тому

    Great discussion 😊

  • @sakshamgulati5854
    @sakshamgulati5854 Рік тому

    the series is amazing bhaiya. so many previous doubts being cleared up in each video and so many new things to learn!
    bhaiya its a great effort by you. thank you very much🙏🙂

  • @vardanverma6072
    @vardanverma6072 Рік тому

    great 🔥🔥

  • @jeevansingh5170
    @jeevansingh5170 2 роки тому

    Thanks for sharing . It helps a lot.

  • @keshav2902
    @keshav2902 2 роки тому +1

    *hey bro, excellent session* 🤗

  • @theuntoldtree
    @theuntoldtree 2 роки тому

    i was able to think 3rd prblm : )

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

    I have a doubt. While calculating complexity we multiply the max limit of the parameters passed and multiply this with (1+transition states). But what if some parameters passed are co-dependent? Then the time complexity would depend on only one of the co-dependent pair of elements right?

  • @debanjanbarman7212
    @debanjanbarman7212 День тому

    nice

  • @soumadipsaha9036
    @soumadipsaha9036 2 роки тому

    At 22:34 if I don't take the next item why the sum doesn't become zero since we are starting all over again to take the items?

  • @mayankmewar5049
    @mayankmewar5049 2 роки тому

    nice session

  • @rahulyela
    @rahulyela Рік тому

    hey vivek , I tried a lot figure out the dp state for below question but couldn't able to do that can u help me to find the dp state.
    Alexa to color all the walls on the occasion of New Year. Alexa can color each wall with one of the K colors. The cost associated with coloring each wall with a particular color is represented by a 2D costs array of size N * K. For example, costs[0][0] is the cost of coloring wall 0 with color 0; costs[1][2] is the cost of coloring wall 1 with color 2, and so on... Find the minimum cost to color all the walls such that no two adjacent walls have the same color.
    TC-----> (N*k)

    • @vivekgupta3484
      @vivekgupta3484  Рік тому

      dp(i,last colour used) … transitions can be made O(1) using optimizations

    • @rahulyela
      @rahulyela Рік тому

      @@vivekgupta3484 can u explain how transitions can be made O(1)?

    • @vivekgupta3484
      @vivekgupta3484  Рік тому +1

      You will have to maintain previous i's 2 best shops. If the best one is of the same colour, take the second best.@@rahulyela

    • @rahulyela
      @rahulyela Рік тому

      @@vivekgupta3484 Got it vivek 👍
      Thanks for replying ❤️

  • @cricketlive2752
    @cricketlive2752 Рік тому

    "Something in Input that changes through test cases then we can't cache it" can someone explain it more please?

  • @mowafkmha4505
    @mowafkmha4505 9 місяців тому +1

    can someone provide recursive code for the third problem

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

      Bricks colouring problem?

  • @abhinav7314
    @abhinav7314 2 роки тому

    👍

  • @himanshumishra6253
    @himanshumishra6253 Рік тому

    Going to Practice Problem Link says 404 error. Can you please fix it.

  • @siddharthsaurav3657
    @siddharthsaurav3657 2 роки тому

    Cfbr

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

    +1

  • @arindam_maji
    @arindam_maji Рік тому

    :)