Leetcode Weekly Contest 186 (110th) with explanation and commentary

preview_player
Показать описание
Larry participates in the Leetcode Weekly Contest 186, finishing 110th out of 11605.

00:00 - Intro
00:44 - Contest Starts
00:51 - Larry works on the first problem
03:03 - Larry works on the second problem
05:44 - Larry works on the third problem
08:35 - Larry works on the fourth problem
24:33 - Larry successfully submits all problems
26:12 - Larry explains solution for problemset

Retro - Was a clean contest - finished the first three in really quick time, but stumbled a bit on Q4, misreading and misunderstanding the boundary conditions - still did okay considering, but a little sad about 2 WAs to discover the edge case. Overall, if a "subpar" contest is finishing 110th, not bad!

Live commentary!

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

Loved the way you approached the 2nd problem Larry, surely will add it to my list of tricky problems...
Congrats on performing well for the contest. Looking forward to more such videos.
There's so much to learn from you. Great job mate! Liked.

royarijit
Автор

Be sure to check the description to jump around the problems! How did you do?

Algorithmist
Автор

34:21 For Q4 line 14, when pushing new state into the heap, how does this account for the scenario when starting a new window is better than appending to previous window? Shouldn't it be `-max(current, num)`?

erickchang
Автор

2nd solutions is so intuitive! How did you come up with it?

SayanGHD
Автор

How you easily got the logic of question no 2 (card points)
And please reply how much problem You solved till now (any platforms)
Is it greater than 1000

dr.darkfurygaming
Автор

Awesome solutions. Specially 2nd question

peruljain
Автор

I got burned by WA and TLE on this one!

hellowill