Paint House - Dynamic Programming - Leetcode 256 - Python

preview_player
Показать описание


0:00 - Read the problem
3:14 - Drawing Explanation
8:20 - DP Explanation
12:46 - Coding Explanation

leetcode 256

#sorted #array #python
Disclosure: Some of the links above may be affiliate links, from which I may earn a small commission.
Рекомендации по теме
Комментарии
Автор

Hey man, just wanted to say thank you for putting the time in to make these videos! They've been super helpful and I was able to secure a google offer as a result :)

sunnilabeouf
Автор

Probably the best explanation out of LeetCode discussions and Youtube Videos combined.
I love these visuals. Keep it up!

JC-hjsn
Автор

Love the part that you said "what does the cache tell us? why do we have it"
Really inspiring and engaging video! Thank you!!

shelllu
Автор

Thanks a lot for your channel. I've always hated doing leetcode but knowing that your solution videos exist makes life a lot easier.

JaskeeratBrar
Автор

Best Explanation I have ever come across. Subscribed.

SreeOne
Автор

Hey dude. you explain things nicely. Let's do leetcode 2158 too if possible. Thanks

vahidsaber
Автор

It really makes me wordless. Very amazing, can't speak more

claudiasun
Автор

Hey man, first of all, thank you very much for making these! I just wanted to ask why is this algorithm correct? I can't wrap my brain around it

markomekjavic
Автор

Would you consider this problem under 0/1 knapsack pattern?

naaleksandrova
Автор

@neetcode, shouldn't the brute force time complexity be 3^n ? It's 3 choices, n times.

anupamdey
Автор

Hey buddy i watch all your videos can you clear .whether all dp problems can be memorized or not ??

programmertik
Автор

What if the number of color also varies ? can we solve it in similar way ?

nishu
Автор

Thanks my friend, your videos are just amazing :)

TheProximator
Автор

Minimum cost to reach Down with a constraint that we cannot choose ith indexed value at next iteration

balavikashkandukuri
Автор

Awesome explanation. Even a dumb head like myself could understand

WorkingManVlog
Автор

Annyone has recursive solution for this???

programmertik
Автор

please solve todays leetcode challenge. It is very tough . Please bro

rogerop
join shbcf.ru