Yahoo logo

Yahoo Interview Question Bank

Yahoo's ML interviews are practical and conversational: short NumPy exercises grounded in recommendation and ranking, textbook ML fundamentals, and deep dives into production projects you have owned. Software-engineering and intern rounds mix practical coding (finance-flavored data processing, classic string and hash-map problems, UI event handling in pseudo-code), CS-fundamentals checks and large-scale system design. Teams have shifted toward a faster-paced culture after recent reorganizations, and headcount can change mid-process.

Coding problems
4
Before you start
Showing 9 of 9
Coding·60 min
Single reportFree preview

Rank Items by Embedding Similarity in NumPy

Given one user embedding and N item embeddings, score each item by dot product with the user vector, then return item indices sorted by score from high to low. Follow-up: drop items the user has already seen from the final ranking. NumPy is required; the whole solution is under ten lines.

RS
numpy
ranking
recommendation
sorting
+1
1 related discussion