Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Social Network Friend Suggester
Medium
Build a friend recommendation system for a social network. Given n users (indexed 0 to n - 1) and a list of existing friendships (undirected pairs), recommend one new friend for each user.
For each user i, apply the following rules in order:
...
More Citadel interview questions
- Pandigital Addition Counthard
- Closest Point Pairmedium
- Flight Itinerary Plannerhard
- Process Schedule Counterhard
- Knight Moves on Phonemedium
- Expression Evaluatormedium
- DAG Order Validatormedium
- Visit All Citieshard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.