Leetcode Weekly Contest 166 (Virtual Rank 90) With Commentary

preview_player
Показать описание
Larry participates in the Virtual Leetcode Weekly Contest 166, finishing 90th out of 5585.

00:43 Contest Starts
00:53 Larry works on the first problem
02:43 Larry works on the second problem
06:53 Larry works on the third problem
12:01 Larry works on the fourth problem
20:15 Larry successfully submits all the problems
21:23 Larry goes over the problems
30:40 Larry does competitor code reviews

Code and Explanation:

Retro - I made a reading error (though problem was ambiguous to me) and then compounded it on a tilt. Still finished all the problems in 20 minutes, a relatively easy set, can't complain, just got to cut down on silly mental errors.

Live commentary!

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

9:04 the one optimization I did with sorting was to set tail to largest elem in the list, since dividing each elem produces 1 at minimum and you're guaranteed an answer

erickchang
Автор

Be sure to check out the description for links to specific parts of the competition and skip to the parts you want! For more, be sure to subscribe!

Algorithmist