Dynamic Programming #1 | Codeforces - USACO - Leetcode - Codejam

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

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

  • @mohdalizilani9896
    @mohdalizilani9896 2 месяца назад +34

    this type of lecture what we cp community want with crystal clear explanation with best problems... hoping for more lecture like that... waiting for your binary seach one shot

    • @CPwithShayan
      @CPwithShayan  2 месяца назад +5

      I’m very glad you liked it

  • @gengi-po3cx
    @gengi-po3cx 2 месяца назад +11

    very good problems for getting better at dp, this stream helped alot!

  • @urdaddy8520
    @urdaddy8520 2 месяца назад +3

    bro just upload these type of videos as many as possible, way too helpful
    thank you for this amazing session

  • @prakhargupta273
    @prakhargupta273 2 месяца назад +3

    A great session shayan. Pls keep this going. Gonna recommend this stream and channel to my juniors and friends!!

    • @CPwithShayan
      @CPwithShayan  2 месяца назад +1

      Thanks a lot for recommending. That helps my work to be better recognized and I appreciate it. I would definitely continue. ♥

  • @keerthireddy8074
    @keerthireddy8074 2 месяца назад +2

    We want more of such streams! Awesome work.

  • @sujalsuri1109
    @sujalsuri1109 28 дней назад

    Thank you for the dp lecture

  • @moradiyashivam286
    @moradiyashivam286 2 месяца назад +5

    great work man, keep it up!!!!

    • @CPwithShayan
      @CPwithShayan  2 месяца назад +1

      Thanks, will do! We will have a topic stream each week on Fridays.

  • @Aryan-vw7lt
    @Aryan-vw7lt 2 месяца назад +2

    please add more of these, and problems based on graphs and trees as well

  • @ИванИванова-л6я
    @ИванИванова-л6я Месяц назад +1

    Dp used to be hard for me. Thank u a lot

  • @Shauryacious
    @Shauryacious 2 месяца назад +3

    DOPE DOPE DOPE, blue green pink, bring me whatever you cook

  • @_Kukosa_
    @_Kukosa_ 21 день назад

    wow thanks bro for a lesson

  • @Sivan_mina
    @Sivan_mina Месяц назад

    thanks for this explanation

  • @solosoul3910
    @solosoul3910 2 месяца назад +1

    Please do more dp problems
    Your work is much appreciated.

    • @CPwithShayan
      @CPwithShayan  2 месяца назад

      Sure. We will have a topic stream, each week on Fridays.

    • @priyanshkumar17
      @priyanshkumar17 2 месяца назад

      @@CPwithShayan Great work Sir!! Thank you

  • @PuspanjaliBehera-x1l
    @PuspanjaliBehera-x1l 2 месяца назад

    Great video! I just started , 1100 R still understood everything u explained.Really amazing explanation

    • @CPwithShayan
      @CPwithShayan  2 месяца назад

      That’s exactly what I’m looking for. Glad to hear that.

  • @Xinyang2011
    @Xinyang2011 2 месяца назад +5

    Pretty good problems choosing, I've been more familiar with DP.

  • @bhupen2074
    @bhupen2074 2 месяца назад +1

    It was amazing dude , thanks alot

  • @HgLi-wl6oy
    @HgLi-wl6oy 2 месяца назад

    Amazing! This lecture is useful for me (as a newbie competitive programming learner)! Thank you so much!

  • @anshulwarade9551
    @anshulwarade9551 2 месяца назад

    Thanks for this! Looking forward for many more such lectures!

  • @manasbiswas9249
    @manasbiswas9249 2 месяца назад +1

    Great session!!

  • @ahmadquraan3624
    @ahmadquraan3624 2 месяца назад +2

    Thank you

  • @adityasaxena6971
    @adityasaxena6971 Месяц назад

    Thank you very much!!..

  • @ArtyomDzagaryan
    @ArtyomDzagaryan 2 месяца назад

    thank you for this series

  • @ankitsha416
    @ankitsha416 2 месяца назад

    you are actually doing great work can you express your view's on how to increase your ratings in cf and keeping doing this

  • @Leo-kx8gu
    @Leo-kx8gu 2 месяца назад

    Very very thanks
    Can you please share a roadmap i am very much struggling with the problems even after solving so much i seems i'm not improving

    • @CPwithShayan
      @CPwithShayan  2 месяца назад

      Yes, I will talk about them in the next sessions

  • @fomoCoder69
    @fomoCoder69 2 месяца назад

    can we go with recursive style of coding dp problems for these problems? i find them more intuitive.

  • @atindraask8074
    @atindraask8074 2 месяца назад

    Please continue this

  • @zvenom4534
    @zvenom4534 2 месяца назад

    Thank you so much for this amazing session, I hope you keep it, and we want more dp please. Thanks Shayan :)

    • @CPwithShayan
      @CPwithShayan  2 месяца назад +1

      Will keep it. Glad you enjoyed it

  • @ab_malek
    @ab_malek 2 месяца назад

    We want this type of stream

  • @manishkumar-uw5mw
    @manishkumar-uw5mw 2 месяца назад

    awesome shayan, waiting for more content like this

  • @dakshmaru8055
    @dakshmaru8055 Месяц назад

    In the last problem why do cnt[i] * pw[cnt[i]-1]; during explaination you told pw[cnt[i]]-1

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

    can anyone please help me with code implementation of 3rd ques i got the logic but cant code it

  • @ArtyomDzagaryan
    @ArtyomDzagaryan 2 месяца назад

    Hello. Can somebody say about second problem in the Shayan video about dynamic programming.How we control that we can not delete elements which go in a row. For example 7 5 5 8. dp[7] = 1, dp[5] = 1, dp[8] = max(dp[7]+1,dp[8]) = 2. So answer is 2
    But we can not delete two fives because they go in a row?

  • @kushmazumdar2800
    @kushmazumdar2800 2 месяца назад

    Can you please upload a video solving some problems on centroid decomposition ?

  • @No_one_is_here21
    @No_one_is_here21 Месяц назад

    also make some stuff on greedy algorithm and backtracking

  • @rlm3227
    @rlm3227 2 месяца назад

    great ! today I learned when to not use array for DP. I always used to think why the heck people are using Maps in dp, now I know the reason why maps are a better option when dealing with large datasets.
    If someone does not know why, then let me tell you
    if I am decalring an array of size (int)1e9, then I will be making my compiler allocate 4gb worth of RAM for this process, but my OS won't allow that. (how i came to the 4gb memory thing, its simple an int is of 4bytes, now you will be decalring an int array of (int)1e9 size, which means 4byte X 1Billion = 4gb) Hence my compiler will throw an error. Now this is because, when an array is created, consecutive memory cells of the ram are allocated for this process, but when using map, the memory allocation is different than an array, and that's why map can be used.

  • @SplitzAcc
    @SplitzAcc 2 месяца назад

    Loved it!!!!!!!

  • @alexandrisaenkov175
    @alexandrisaenkov175 2 месяца назад

    Beeeeessst stream!!!

  • @shivamraj5391
    @shivamraj5391 2 месяца назад +1

    I read only c language bhaiya can I start this lecture

    • @urdaddy8520
      @urdaddy8520 2 месяца назад +2

      Practice recursion first, then it will be a bit easier

    • @shivamraj5391
      @shivamraj5391 2 месяца назад +1

      Ok bhaiya

  • @quantaedits_
    @quantaedits_ 2 месяца назад

    One of the finest resources for mastering dynamic programming, particularly for competitive programming, is truly invaluable. However, it would be fantastic to have similarly exceptional tutorials covering a broader range of topics! @CPwithShayan

    • @CPwithShayan
      @CPwithShayan  2 месяца назад

      Thank you! This Friday, we have a topic stream on graph algorithms.

  • @Maxwell-u
    @Maxwell-u 2 месяца назад

    Can you give me again a code forces link prolems

  • @parasjeeprep3206
    @parasjeeprep3206 19 дней назад

    I am not here to lose I can win and prove everyone that how good I am

  • @subarnasaikia7862
    @subarnasaikia7862 2 месяца назад +2

    Thank you