The setup was a code repo that implements a friend recommendation system. I could use most of the AI tools on the market the whole time (Codex, Claude Opus, Gemini, etc.).
The requirements:
- The existing recommend(user) method had a failing test. I found that the bug is that it can recommend a user to themselves, and I was asked how to change it so the test passes.
- Design and implement a new, improved recommend(user) method.
- Evaluate the performance of recommend(user): which metrics to use and how to evaluate it.
In the interview my basic idea was to recommend people based on how much the friend circles of the two people overlap. The interviewer said OK and had no additional requirements.
Discussion
Loading comments…