Build a Top-Three Referral Leaderboard from Chronological Events

Read the full interview experience this question came from →

Quick Overview

Build a referral leaderboard from chronological referrer and referred-user arrays, counting every direct and downstream referral. The prompt returns the top three eligible users with deterministic count and username ordering, matching a DFS-and-memo solution over the referral forest.

Build a Top-Three Referral Leaderboard from Chronological Events

Company: Robinhood

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Build a referral leaderboard from chronological referrer and referred-user arrays, counting every direct and downstream referral. The prompt returns the top three eligible users with deterministic count and username ordering, matching a DFS-and-memo solution over the referral forest.

Read the full Robinhood Software Engineer interview experience this question came from

|Home/Coding & Algorithms/Robinhood
Robinhood logo
Robinhood
Jun 22, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
3
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...