Friend Recommendation System
Design and implement a friend recommendation system that suggests up to 5 potential friends for each user, excluding the user themselves and existing friends. Consider randomization strategies and comprehensive test case coverage.
Asked at:
Meta
Hello Interview Premium
Hello Interview Answer Key
Friend Recommender
A detailed walkthrough of the Friend Recommender problem, covering the approach, implementation, and optimization.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late April, 2026
Meta
Mid-level
Mid April, 2026
Meta
Mid-level
Early April, 2026
Meta
Senior
1. Find bugs 2. Create method to return random friends recommendations. 3. Optimized part- create a method to rank those recommendations (for example rank by the count of mutual friends)
Your account is free and you can post anonymously if you choose.