How Robbing Houses Can Make You Better At Dynamic Programming

  Рет қаралды 4,670

Kantan Coding

Kantan Coding

Күн бұрын

Пікірлер: 20
@haseebasif100
@haseebasif100 9 ай бұрын
best video i came across on Dynamic programming after going through so many.
@kantancoding
@kantancoding 9 ай бұрын
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 4 ай бұрын
i love the way you explained this
@vinitsunita
@vinitsunita 22 күн бұрын
Superb explanation 👏👏
@HarshRaj-yj5gb
@HarshRaj-yj5gb Ай бұрын
Why can't we just take sum of two alternate endings. 1st - start from 1st house and take alternate house sum till end 2nd - do same but start from 2nd house Compare max of both at end and return?
@hawkingradiation3774
@hawkingradiation3774 2 жыл бұрын
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
@iAmTheWagon
@iAmTheWagon 2 жыл бұрын
Pretty cool explanation
@GauravDG1990
@GauravDG1990 8 ай бұрын
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 8 ай бұрын
Hmm, I'm not sure what you mean. That's what it is in the video 😆
@GauravDG1990
@GauravDG1990 7 ай бұрын
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 жыл бұрын
Google honza/vim-snippets 😉
@XajiDahir
@XajiDahir 2 жыл бұрын
Thank you.
@buddhie1
@buddhie1 2 жыл бұрын
Hi Georgio aka Selikapro, are you open to having a mentee? 😊
@kantancoding
@kantancoding 2 жыл бұрын
Hey bro. You don’t need a mentor. Just keep grinding 🙂
@buddhie1
@buddhie1 2 жыл бұрын
@@kantancoding Sure will do 😊
@reallylordofnothing
@reallylordofnothing 6 ай бұрын
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 6 ай бұрын
I’m happy it helped!
You Must Learn This Pattern | Topological Sort
10:12
Kantan Coding
Рет қаралды 3,8 М.
House Robber - Leetcode 198 - Dynamic Programming (Python)
13:15
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 3,3 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 2,7 МЛН
The 3 Laws of Writing Bug Free Code
3:59
Kantan Coding
Рет қаралды 77 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Dynamic Programming For Beginners
16:45
Kantan Coding
Рет қаралды 4,2 М.
Paint House - Dynamic Programming - Leetcode 256 - Python
15:55
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 731 М.
Dynamic Programming Explained (Practical Examples)
29:00
Tech With Tim
Рет қаралды 108 М.