Rank Top-K Users by Network Reach and Flow Centrality

Asked at Mercor · Coding Questions · Difficulty: Hard · Last asked Jul 15, 2026

Given a directed graph referral network `u -> v` (`u` referred `v`). Build on your `ReferralNetwork` to implement two ranking functions returning the **top K users**.

Loading the problem…