How Robbing Houses Can Make You Better At Dynamic Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 2022
  • Leetcode 198. House Robber (bottom up)
    Top down coming soon.. Dynamic Programming explanations Join the Discord to talk to me and the rest of the community!
    / discord

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

  • @haseebasif100
    @haseebasif100 5 หลายเดือนก่อน +1

    best video i came across on Dynamic programming after going through so many.

    • @kantancoding
      @kantancoding  5 หลายเดือนก่อน

      Thank you for your comment! I have some more videos on dynamic programming in this playlist. Please let me know what you think 😊

  • @PoojitTummalapalli
    @PoojitTummalapalli 14 วันที่ผ่านมา

    i love the way you explained this

  • @iAmTheWagon
    @iAmTheWagon 2 ปีที่แล้ว

    Pretty cool explanation

  • @dhuxdheerdahir2736
    @dhuxdheerdahir2736 2 ปีที่แล้ว

    Thank you.

  • @hawkingradiation3774
    @hawkingradiation3774 2 ปีที่แล้ว +1

    great video, just wanted to know how did you created the leet template looked really good

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

    great explanation! may I ask what font are you using? It's so pretty

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

      Thanks! It’s called agave I believe

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

    I guess it should be dp[i] = max(dp[i-2] + nums[i], dp[i-1]) in for loop. Thanks for the explanation though!

    • @kantancoding
      @kantancoding  3 หลายเดือนก่อน +1

      Hmm, I'm not sure what you mean. That's what it is in the video 😆

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

      Sorry my bad. 🙏🏻

  • @iAmTheWagon
    @iAmTheWagon 2 ปีที่แล้ว

    How'd you type in 2 places at once when you made the method? What plugin is that?

    • @kantancoding
      @kantancoding  2 ปีที่แล้ว +1

      Google honza/vim-snippets 😉

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

    Hi Georgio aka Selikapro, are you open to having a mentee? 😊

    • @kantancoding
      @kantancoding  ปีที่แล้ว +3

      Hey bro. You don’t need a mentor. Just keep grinding 🙂

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

      @@kantancoding Sure will do 😊

  • @reallylordofnothing
    @reallylordofnothing 2 หลายเดือนก่อน +1

    I understood this. This version is better than neetcode one.
    core of the solution is
    maxWealth[i] = Math.max(maxWealth[i-1], (maxWealth[i-2] + houses[i]));

    • @kantancoding
      @kantancoding  2 หลายเดือนก่อน +1

      I’m happy it helped!