InterviewStack.io LogoInterviewStack.io

Recommendation, Ranking, and Personalization Questions

Systems that select and order items for users. Covers candidate generation and ranking, personalization signals, collaborative and content-based approaches, learning-to-rank, multi-armed bandits, and online experimentation for model validation. Focuses on the modeling and evaluation patterns specific to recommendation and ranking at scale.

MediumTechnical
109 practiced

Provide pseudo-code for one iteration of Alternating Least Squares (ALS) for implicit feedback (weighted-regularized MF / WRMF) updating user factors while keeping item factors fixed. Explain the math (objective), how confidence weights are applied, and give time and memory complexity of the update.

HardTechnical
109 practiced

You are proposing a phased rollout for a new product recommendation engine (collaborative + content-based hybrid). Stakeholders want evidence of business impact before full rollout. Design a staged plan including offline evaluation metrics, small-scale A/B pilots (target cohorts), success metrics (short and long-term), rollback criteria, instrumentation needed, and cost-benefit thresholds that would justify scaling to 100% of users.

HardSystem Design
86 practiced

Design an end-to-end system for real-time personalized search that supports candidate retrieval, ANN-based image/text similarity, feature assembly, a learning-to-rank reranker, and an exploration policy using multi-armed bandits. Describe throughput and latency budgets, storage needs for embeddings, how to run safe online exploration, and an offline simulation and metric-suite to evaluate new policies before deployment.

EasySystem Design
67 practiced

Describe the standard two-stage recommender architecture (candidate generation and ranking). For each stage, list its primary responsibilities, typical modeling choices, performance and scalability trade-offs, and how the two stages interact operationally (e.g., latency budgets, candidate pool sizes). Why is this design used in large-scale systems?

MediumTechnical
67 practiced

How would you correctly log and attribute conversion events that can happen days after an initial exposure (for example, product purchase after 3 days)? Describe event logging schema, keys, and how you would build offline labels for model training and for online experiment analysis to avoid misattribution and leakage.

Unlock Full Question Bank

Get access to all Recommendation, Ranking, and Personalization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.