Day 122 of 133
Cold-start strategies (recsys, search, ads) + DSA review
New users vs new items; content-based bridges; bandits.
DSA · NeetCode Greedy
- Partition LabelsDSA · Greedy
Interview questions to prep
- Prove the greedy choice — why is the locally-optimal pick safe globally? (Exchange argument or staying-ahead.)
- When does greedy fail on a similar-looking problem, and what would you reach for instead (DP, BFS)?
- Walk through edge cases that often break naive greedy: ties, negatives, single element.
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?
Specialization · RecSys foundations
Interview questions to prep
- Walk through matrix factorization for recommendations and how SGD trains it.
- What's the cold-start problem in CF and how do hybrid models fix it?
Interview questions to prep
- Compare content-based vs collaborative filtering — when does each fail?
- How would you blend content and CF signals — what's the failure mode of naive averaging?
Interview questions to prep
- Compare nDCG, MAP, MRR, and Recall@k — when do you use each?
- Why do offline metrics often disagree with online A/B test results in recsys?
References & further reading