Service Load Factor / Referral Count

Given a set of nodes and directed edges, compute the Load Factor of every node.

An edge [a, b] means that node a depends on node b (equivalently, user a was referred by user b). All val...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: