July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
30
:
31
Back to Dashboard
Balanced Drainage Split
Medium
Question
You are given a water drainage network shaped as a rooted tree with n nodes labeled from 0 to n - 1. Water flows from each node upward toward the root at node 0, then exits the system.
...