Largest 3 Same Digit Number in String - Leetcode 2264 - Solve with Sam in Python

preview_player
Показать описание
I walk through the leetcode question [2264. Largest 3 Same Digit Number in String] acting as a tech interview candidate and talk through my thought process and how I try to communicate my thinking to the interviewer.

00:00 - Intro
01:00 - Start interview
02:50 - Restate problem and clarify assumptions
05:00 - Discuss approaches / Start solve
08:23 - Approach 1 - Brute force
13:43 - Test Approach 1 on leetcode
17:40 - Extension - Approach 2 optimal for variable/larger k
24:58 - Test Approach 2 on leetcode

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

What book would you recommend to get good at algorithms? Or is it better to just grind Leetcode?

ombieautopilot
welcome to shbcf.ru