Day 126 of 133
Self-mock 3: 60-min full ML system design (your hardest case)
Pick the case you're least comfortable with. Record. Self-debrief.
DSA · NeetCode Stack
- Car FleetDSA · Stack
Interview questions to prep
- Why a stack here — what LIFO property does the problem exploit?
- If this uses a monotonic stack, state the monotonic invariant and how it's restored on each push.
- Walk through complexity: each element is pushed and popped at most once, so the total work is O(n).
ML System Design · Framework
- 7-step framework: clarify → metrics → data → model → infra → eval → edge casesML System DesignPatrick Halina
Interview questions to prep
- Walk me through your 7-step framework for any ML system design interview.
- How do you avoid running out of time on the model section?
Interview questions to prep
- What are the first five clarifying questions you ask in any ML system design interview?
- How do you confirm the business metric vs the ML metric without burning 10 minutes on it?
Interview questions to prep
- How do you map a business metric to an offline ML metric?
- Walk through three real cases where offline gains didn't translate online.
ML System Design · Cross-cutting trade-offs
Interview questions to prep
- What levers do you pull when accuracy is great but latency misses the budget?
- Walk through where you'd add caching in a RAG + LLM pipeline to halve P99.
Interview questions to prep
- How would you design a cascade: cheap model first, expensive only when needed?
- What's the right verifier for the cheap model's output — and when does it dominate cost?
Interview questions to prep
- Walk through cold-start strategies for new users vs new items.
- Compare bandit-based exploration vs content-based bridges for cold start — when does each fit?
Interview questions to prep
- When would you reach for federated learning vs differential privacy vs on-device inference?
- What's the accuracy cost of DP-SGD at typical ε values, and how do you decide if it's acceptable?
References & further reading