InterviewDB Question

Swipe Left: Implement a Recommendation Filter for a Dating-App Style Feed

Question Details

Problem You are building the content feed for a swipe-based app. Each user has a set of seen_ids (profiles already swiped) and a preference vector. Given a pool of candidate profiles with feature vectors, return the top k unseen candidates ranked by cosine similarity to the user's preference vector. Exclude already-seen profiles. Example Follow-ups Cosine similarity is O(d) per candidate — how do you scale to millions of profiles? How would you incorporate mutual-match signals (both users swiped…

Full Details

🔒

Unlock all Palantir questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a palantir interview during the phone round.

It covers the following topics: Coding, Phone .