← Questions

Referral network

0
MercorCodingLast asked May 2026

Implement a referral network: users refer other users, and the network records who referred whom. Support adding referrals and answering questions about a user's referrals, such as everyone they reached directly or through the people they referred.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding