Pular para o conteúdo

Aulas em vídeo

Acabou de ver um dos nossos vídeos curtos? Cada vídeo aqui tem a aula completa por trás: a mesma ideia como uma animação que você avança passo a passo, com um exercício e um quiz. Grátis, sem cadastro.

60 vídeos · mais recentes primeiro

  • 01Guess the output ·

    [1, 2, 10].sort() in JavaScript. What comes out?

    Guess the Output: JavaScript Sort

    Big-O
    No TikTok e no InstagramAbrir aula
  • 02Algorithm reels · 0:27

    Allow s3:* says yes. Deny beats allow.

    IAM: Deny Beats Allow

    AWS para entrevistas
    Abrir aula
  • 03Race ·

    Join 100,000 items, then find every root. Plain union-find: 4,999,950,000 pointer steps. Union by size + path compression: 199,996. Same components for every find, about 25,000 times less work.

    Union-Find: Plain vs Union by Size + Path Compression, Race

    Union-Find
    No TikTok e no InstagramAbrir aula
  • 04How it works ·

    A model never reads letters or words. So what does it read?

    It Never Reads Words, So What Does It Read: How Tokenization Works

    IA e ML
    No TikTok e no InstagramAbrir aula
  • 05Explained out loud ·

    A limit of 100 requests a minute. Send 100 in the last second of one minute and 100 in the first second of the next: a fixed window lets all 200 through. A token bucket lets 103.

    Rate Limiting, Explained: Fixed Window vs Token Bucket at the Minute Boundary

    System design
    No TikTok e no InstagramAbrir aula
  • 06Guess the output ·

    Remove every item from a list while looping over it. What is left?

    Guess the Output: Remove While Looping

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 07Four levels ·

    Rotate 1,000,000 items right by 250,000: 250,000,000,000 moves, or 1,000,000?

    Rotate an Array, Four Levels

    Arrays
    No TikTok e no InstagramAbrir aula
  • 08Algorithm reels · 0:15

    Which words does "bank" listen to?

    Attention, Intuitively

    IA e ML
  • 09How it works ·

    Two people type in the same spot, at the same moment. Whose edit wins?

    Two People Type in the Same Spot, Who Wins: How a Collaborative Editor Works

    Casos de system design
    No TikTok e no InstagramAbrir aula
  • 10Algorithm reels · 0:21

    Top 4 of 10? The root decides.

    Top K Elements

    Heaps
  • 11Race ·

    The max of every window of 1,000 in 100,000 values. Rescanning each window: 98,901,999 value comparisons. A monotonic deque: 199,760. Same 99,001 maxima, about 495 times less work.

    Sliding Window Maximum: Rescan vs Deque, Race

    Pilhas e filas
    No TikTok e no InstagramAbrir aula
  • 12Four levels ·

    10,000 votes, one name holds more than half: 100,010,000 loop steps to find it, or 10,000?

    Majority Element, Four Levels

    Arrays
    No TikTok e no InstagramAbrir aula
  • 13Algorithm reels · 0:18

    Limit: 4 per second. One lets 8 through.

    Rate Limiting: 4 Algorithms

    System design
  • 14Explained out loud ·

    Bank can mean money or the side of a river. In "she sat by the river bank", attention gives river 79% of the weight, and bank means water. Swap in cash, and it means money.

    Attention, Explained: How the Word Bank Picks Money or River

    IA e ML
    No TikTok e no InstagramAbrir aula
  • 15How it works ·

    5 million jobs a day, and any worker can die mid-job. So why does the job still run?

    Worker Dies Mid-Job, the Job Still Runs: How a Job Scheduler Works

    Casos de system design
    No TikTok e no InstagramAbrir aula
  • 16Algorithm reels · 0:18

    4 slots. A 5th key. Who gets evicted?

    LRU Cache

    Low-level design
  • 17Guess the output ·

    (1) and (1,). Which one is a tuple?

    Guess the Output: Tuple Comma

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 18Algorithm reels · 0:19

    14 pair checks? Try 6 lookups.

    Two Sum

    Tabelas hash
  • 19Race ·

    Load 10,000 jobs and all their parts. The N+1 loop: 10,001 statements sent. One JOIN: 1. Same 30,000 rows.

    Database Queries: N+1 vs One Join, Race

    SQL
    No TikTok e no InstagramAbrir aula
  • 20How it works ·

    Something big happens: 200,000 notifications a minute. How is none lost, and none sent twice?

    200,000 a Minute, None Lost, None Twice: How a Notification System Works

    Casos de system design
    No TikTok e no InstagramAbrir aula
  • 21Made in code · 0:19

    Same maze. Same speed.

    Two Ways Out

    Grafos
  • 22Explained out loud ·

    One server answers 800 requests a second and the peak brings 3,000. A bigger machine, or four small servers behind a load balancer? And why does scaling out log people out?

    Vertical vs Horizontal Scaling, Explained: One Bigger Machine or Four Small Servers for 3,000 Requests a Second

    System design
    No TikTok e no InstagramAbrir aula
  • 23Guess the output ·

    return 1 in try, return 2 in finally. What does f() return?

    Guess the Output: Return in Finally

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 24Made in code · 0:19

    Four rules. No player.

    The Glider Gun

    Matrizes e grids
  • 25Four levels ·

    Count every 1 bit in all the numbers 0 to 999,999: 19,951,425 loop steps, or 20?

    Count the Set Bits, Four Levels

    Manipulação de bits
    No TikTok e no InstagramAbrir aula
  • 26Algorithm reels · 0:19

    One hop: 9 ms. Two hops: 5 ms.

    Dijkstra's Algorithm

    Grafos
  • 27How it works ·

    Cat and kitten: different words, nearly the same meaning. How does a machine know?

    Two Different Words, Same Meaning: How Embeddings Work

    IA e ML
    No TikTok e no InstagramAbrir aula
  • 28Algorithm reels · 0:16

    Merge 6 intervals into 3 blocks.

    Merge Intervals

    Intervalos
  • 29Race ·

    Find 1,000 letters in 1,000,000. Naive search: 999,001,000 character comparisons. KMP: 2,000,997, table included.

    Pattern Search: Naive vs KMP, Race

    Strings
    No TikTok e no InstagramAbrir aula
  • 30Four levels ·

    60 stairs, 1 or 2 steps at a time: how many ways? 5,009,461,563,921 calls, or 7?

    Climbing Stairs, Four Levels

    Programação dinâmica
    No TikTok e no InstagramAbrir aula
  • 31Algorithm reels · 0:19

    One tree, 4 orders. Which one is sorted?

    Tree Traversals

    Árvores e BST
  • 32Explained out loud ·

    1,000 requests in one minute. The dashboard shows the average: 177 ms, looks healthy. But 20 of them took more than 2 seconds, and the 99th percentile is 3,082 ms.

    Average Latency vs the 99th Percentile, Explained: 177 ms on the Dashboard, 20 Requests Over 2 Seconds

    System design
    No TikTok e no InstagramAbrir aula
  • 33How it works ·

    Why does a chatbot forget the start of a long chat?

    Why Does a Chatbot Forget the Start of a Chat? Context Windows

    IA e ML
    No TikTok e no InstagramAbrir aula
  • 34Algorithm reels · 0:21

    Pop until smaller. Nobody waits twice.

    Monotonic Stack

    Pilhas e filas
  • 35Guess the output ·

    One generator, read twice. What does the second read print?

    Guess the Output: Generator Twice

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 36Algorithm reels · 0:17

    45 subarrays? Kadane reads just 9.

    Kadane's Algorithm

    Arrays
  • 37Race ·

    A queue of 100,000. Serve them all, front first. list.pop(0): 5,000,050,000 steps. deque.popleft(): 100,000.

    Queue: List vs Deque, Race

    Pilhas e filas
    No TikTok e no InstagramAbrir aula
  • 38How it works · 0:42

    The model never saw your documents. How does it answer from them?

    It Never Saw Your Docs: How RAG Answers

    IA e ML
  • 39Made in code · 0:18

    Stop reading.

    BytePatterns Launch Film

    Ordenação
  • 40Explained out loud ·

    Two servers share one count: 10 seats left. The link between them breaks, and 13 buyers arrive. Refuse every sale, or sell 13 tickets for 10 seats.

    Consistency or Availability, Explained: 13 Buyers, 10 Seats and a Broken Link

    System design
    No TikTok e no InstagramAbrir aula
  • 41Guess the output ·

    result = nums.sort(). What is in result?

    Guess the Output: Sort Returns None

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 42Four levels ·

    Longest stretch with no repeated letter in 10,000 letters: 166,716,670,000 set inserts, or 22,389 dictionary operations?

    Longest Substring Without Repeats, Four Levels

    Strings
    No TikTok e no InstagramAbrir aula
  • 43Algorithm reels · 0:21

    One negative edge. Dijkstra locks early.

    Bellman-Ford

    Grafos
  • 44How it works · 0:42

    Fifty million places. Which twenty are nearest to you?

    50 Million Places, Which 20 Are Near You

    Casos de system design
  • 45Algorithm reels · 0:24

    Every dead end sends you back up.

    N-Queens

    Backtracking
  • 46Race ·

    3 to the power 1,000,000, mod 1,000,000,007. Loop: 1,000,000 multiplications. Fast power: 27.

    Power: Loop vs Fast Exponentiation, Race

    Matemática e teoria dos números
    No TikTok e no InstagramAbrir aula
  • 47Four levels ·

    Are two 100,000-letter strings anagrams? 20,000,100,001 comparisons, or 200,026 counter operations?

    Anagram Check, Four Levels

    Tabelas hash
    No TikTok e no InstagramAbrir aula
  • 48Algorithm reels · 0:20

    3 ways to prove a cycle exists.

    Detect a Cycle

    Listas encadeadas
  • 49Explained out loud · 0:59

    One layer of a big model holds 16,777,216 weights. Low-rank adaptation (LoRA) leaves them frozen and trains 65,536: 256 times fewer.

    LoRA, Explained: Train Two Thin Strips, Not 16,777,216 Weights

    IA e ML
  • 50How it works · 0:41

    Ten million players. Scores change thousands of times a second.

    10 Million Players, the Top 100 for Free

    Casos de system design
  • 51Algorithm reels · 0:23

    Guess four tokens. Check them in one pass.

    Speculative Decoding

    IA e ML
  • 52Guess the output ·

    0.1 + 0.2 == 0.3. True or False?

    Guess the Output: Float Sum

    Cheat sheets
    No TikTok e no InstagramAbrir aula
  • 53Algorithm reels · 0:21

    One bigger value retires the rest.

    Sliding Window Maximum

    Pilhas e filas
  • 54Race ·

    1,000 range sums over 1,000,000 numbers. Loop: 333,600,555 additions. Prefix sums: 1,001,000 adds + subtracts.

    Range Sums: Loop vs Prefix Sums, Race

    Arrays
    No TikTok e no InstagramAbrir aula
  • 55How it works · 0:40

    You change one paragraph in a 10 GB file. What has to upload?

    A 10 GB File Changed, Only 4 MB Moved

    Casos de system design
  • 56Explained out loud · 1:00

    Two pages match a search for cheap flights. The dot product picks the long hotel guide, 6 to 2. Cosine similarity picks the short note, 0.89 to 0.45.

    Cosine Similarity vs the Dot Product: Why the Long Page Lost

    IA e ML
  • 57Guess the output · 0:22

    True, 1 and 1.0 as keys in one dictionary. What does it print?

    Guess the Output: Dict Keys

    Cheat sheets
  • 58Four levels · 0:35

    One number is missing from 1 to 1,000,000: 177,257,227,999 comparisons, or 1,000,003 operations?

    Find the Missing Number, Four Levels

    Manipulação de bits
  • 59Algorithm reels · 0:19

    One machine dies. How many keys move?

    Consistent Hashing

    Casos de system design
  • 60How it works · 0:41

    A short link is seven characters. How can that be enough?

    Seven Characters, 3.5 Trillion Links

    Casos de system design