The Ultimate Dynamic Programming Course (7 Patterns with Examples)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024

ความคิดเห็น • 15

  • @algo.monster
    @algo.monster  ปีที่แล้ว

    Here's the list: algo.monster/dp

  • @movieparadize
    @movieparadize 20 วันที่ผ่านมา +1

    Best DP intuition building video.

  • @davidespinosa1910
    @davidespinosa1910 ปีที่แล้ว +6

    DP = recursion + memoization. So you're showing recursion (divide-and-conquer) for various data structures. Memoization avoids duplicate work on shared subproblems. Good job.

  • @utti_12c
    @utti_12c 4 หลายเดือนก่อน

    Thank you🙏

    • @algo.monster
      @algo.monster  3 หลายเดือนก่อน

      Thanks for viewing! Glad it helps.

  • @KuaisArts
    @KuaisArts ปีที่แล้ว

    Needed this thank you!!

  • @abilashabi6800
    @abilashabi6800 2 หลายเดือนก่อน

    Tiny Code:
    class Solution {
    public int climbStairs(int n) {
    int one = 1, two = 1;
    for (int i = 2; i

  • @09TYPER
    @09TYPER 9 หลายเดือนก่อน

    nice vid thanks

  • @shubhanshumishra3454
    @shubhanshumishra3454 3 หลายเดือนก่อน

    The code you wrote for the problem "1043. Partition Array for Maximum Sum" isn't giving the right output.

  • @rajrsa
    @rajrsa ปีที่แล้ว

    Thanks for this!
    I am trying to understand this by converting the code to python and kinda stuck...
    At 13:37, you used vectordp(n+1). What does that mean for the initial values of dp?
    I can't create a blank array of size n using python afaik. So, what should be the initial values of the dp array?
    Also, imho, people who are using C++ for programming interviews will not be watching these types of videos lol

    • @rajrsa
      @rajrsa ปีที่แล้ว

      Ok, initialized with 0s and it worked.

    • @algo.monster
      @algo.monster  ปีที่แล้ว

      vectordp(n+1) initializes all elements to 0. oh haha, noted, will try to use python in the future!

  • @642_anirban2
    @642_anirban2 ปีที่แล้ว

    Awesome video ..✨