NewThe Learning module is now liveSee what's new
avatar
User-18g29Oct 8, 2026

eBay phone screen, product recs question + scale follow up

Interview Experiences
ebay

eBay phone screen, product recs question + scale follow up

Had my eBay phone screen Tuesday for a backend SWE role. One coding question plus a scale discussion, about 60 min total. Still waiting to hear back.

Coding was the product recommendation one. You get a bunch of user browsing sessions, each session is a list of product IDs, and a target product. Find the other products that show up in the same sessions as the target most often and return the top K. I did a frequency map first, then a heap, and the interviewer asked if I could beat n log k. Switched to bucket sort since the counts can't go above the number of sessions. He seemed ok with it. Edge cases he poked at: target showing up twice in one session, and K bigger than the number of candidates.

Last 20 min or so was how would you run this as a real service for millions of users. I talked about precomputing co-occurrence counts offline in batch jobs, keeping a top K list per product in a cache, and updating it from a stream instead of recomputing everything. He pushed on hot products and how fresh the data needs to be. Don't think I nailed the freshness part tbh.

Heads up, he asked if I was ok writing Java. I said I'd prefer Python and he let it go, but sounds like a lot of their stack is Java.

20083.1k

Replies (6)

avatar
mayachenOct 8, 2026

Did he want actual code for the scale part or just talking? Mine is next week.

113
avatar
rohan.vermaOct 8, 2026

Just talking, no code. Kind of a whiteboard convo, he drew nothing either lol

4
avatar
User-8qa5bOct 8, 2026

How long did it take you to get the phone screen after the recruiter call?

112
avatar
rohan.vermaOct 8, 2026

Around 2 weeks. Recruiter was pretty slow to respond in between.

113
avatar
User-gg6coOct 8, 2026

For the scale follow-up, did they push on handling a live stream of sessions, or was it more about sharding the frequency counts? Curious how deep they went on that part.

79
avatar
priyashah0412Oct 8, 2026

Bucket sort is a nice touch, I just stopped at the heap and he seemed fine too. Good luck!

62
avatar
User-fin0xOct 8, 2026

Had the same Java vibe, my loop interviewer kept asking about Spring stuff.

13
avatar
jacobmiller96Oct 8, 2026

I got the same product recs one last spring. The follow up for me was more about sharding the counts than freshness.

2
No more replies