Champagne Tower - Leetcode 799 - Python

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


0:00 - Read the problem
0:30 - Drawing Explanation
8:45 - Coding Explanation

leetcode 799

#neetcode #leetcode #python
Рекомендации по теме
Комментарии
Автор

I coded after following your explaination and my code is exactly similar. Thanks dude. I have recently started doing Leedcode daily for last 5 days.

akash-kumar
Автор

Great explanation as always. But I found the 44.5 overflow at 4:40 to be very confusing. I am pretty sure it should be 49.5 as 2x 49.5 = 99.

bundiderp
Автор

highly recommend all of you to do leetcode 118 - 120 (neetcode has all explanation videos)
the structure is pretty similar that all of them are dealing with triangles
btw great explanation and your solutions always inspire me, thanks a lot🙏🏻

kelvink
Автор

I was worrying about some champagne will reach the end first. Didn’t think of processing it row by row is possible. Great explanation, thanks!

il
Автор

It's literally NEET CODE! Thank you

王瀚君-cj
Автор

Don't think I'll ever be able to solve this in a real interview if I never did this question before :(

tenzin
Автор

Simple and elegant, thanks for the effort! Keep it going :)

JMKAKAN
Автор

847. Shortest Path Visiting All Nodes :(

darkcaper
Автор

did the same, but i basically consider this a BFS where each row is a level of the tree

memeproductions
Автор

If poured was fixed could there be a DP solution? I'm thinking along the lines that you would have a base case since you know the total amount of champagne.

satviksrinivas
Автор

Bro please upload leetcode video daily

anshror
Автор

Guess you meant 49.5 and not 44.5 at 5.08 for 100 example.

StellasAdi
join shbcf.ru