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
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]));
best video i came across on Dynamic programming after going through so many.
Thank you for your comment! I have some more videos on dynamic programming in this playlist. Please let me know what you think 😊
i love the way you explained this
Pretty cool explanation
Thank you.
great video, just wanted to know how did you created the leet template looked really good
great explanation! may I ask what font are you using? It's so pretty
Thanks! It’s called agave I believe
I guess it should be dp[i] = max(dp[i-2] + nums[i], dp[i-1]) in for loop. Thanks for the explanation though!
Hmm, I'm not sure what you mean. That's what it is in the video 😆
Sorry my bad. 🙏🏻
How'd you type in 2 places at once when you made the method? What plugin is that?
Google honza/vim-snippets 😉
Hi Georgio aka Selikapro, are you open to having a mentee? 😊
Hey bro. You don’t need a mentor. Just keep grinding 🙂
@@kantancoding Sure will do 😊
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]));
I’m happy it helped!