Lesson 20 of 21
1. How to Approach a Design Question

Sources

3 min read+10 XP

Source notes

  • Round length (45 to 60 minutes) and the step split are typical practice, not a fixed standard. They vary by company and level.
  • The "5 Cs" are this book's summary of commonly used signals (requirements, design, depth, trade-offs, communication), not any one company's official rubric.
  • 301 (Moved Permanently) responses may be cached by browsers by default; 302 (Found) responses are not cached unless headers say so: HTTP Semantics, RFC 9110, sections 15.4.2 and 15.4.3.
  • Level 2 numbers, base62 code lengths (62⁵ = 916,132,832; 62⁶ = 56,800,235,584) and the 1.8% collision chance at 1 billion links (10⁹ ÷ 62⁶) were computed 2026-10-05.
  • Level 3 and Level 4 code: tested 2026-10-05 (code/ch01_url_shortener.py, all checks pass).
  • All traffic numbers in this chapter are interview assumptions, not real figures for any company.