arjunpatel1997Aug 3, 2026
eBay phone screen, got the Top K recommendation question
Interview Experiences
ebay
eBay phone screen, got the Top K recommendation question
Had my eBay phone screen, figured I'd jot down the details since this one seems pretty common.
Got the classic co-occurrence recommendation problem, given user sessions with a target product, count which other products show up next to it most and return the top K. Frequency map plus bucket sort gets you there in linear time, ngl felt pretty doable once I saw the pattern. Interviewer followed up right after with the scaling question, how this holds up with millions of users.
No word back yet.
22463.6k
Replies (4)
No more replies