Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Employee Referral Program
Medium
A company runs a referral program where employees can refer new hires. When employee A refers employee B, A receives credit not only for B but also for everyone B subsequently refers, and so on transitively.
Given two parallel lists -- referrers and referrals -- where referrers[i] referred referrals[i], compute the total referral credit for each person who made at least one referral. Return the top 3 referrers sorted by credit count in descending order. If two referrers have the same count, sort them alphabetically. Format each entry as "Name count".
...
Asked at:Robinhood
More Robinhood interview questions
- Maximum Multiplier Pathhard
- Offset Commiteasy
- Maximum Stock Profiteasy
- Social Network Money Transfersmedium
- Top 10 Wordsmedium
- Stock Trades Matchinghard
- Candlestick Data Generatormedium
- Find Middle Coursemedium
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.