Contains Duplicate - LeetCode 217 - Python

Publicado em: 30 May 2024
no canal de: Gordon Zhu
812
36

Most teachers introduce solutions as fully-formed recipes. But in doing so, they totally miss how solutions are DISCOVERED. In painstaking detail, I go through this crucial missing piece and demonstrate how to methodically attack problems from every possible angle.

My teaching: https://watchandcode.com
Link to problem: https://leetcode.com/problems/contain...

0:00 Problem statement
0:15 Initial thought process
0:40 Brute force
1:47 Can we beat O(n^2)?
2:30 Sorting
3:00 Can we beat O(n*log(n))?
3:38 Big O analysis
4:11 Initial map approach
4:44 Equivalent set approach
5:18 Using Python's Counter class
6:16 Thought process for indirect strategy
7:06 Indirect map and set implementations
7:59 Direct design versus indirect
8:26 Can we go faster?
8:56 Reflections


Nesta página do site você pode assistir ao vídeo on-line Contains Duplicate - LeetCode 217 - Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Gordon Zhu 30 May 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 812 vezes e gostou 36 espectadores. Boa visualização!