Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
58
:
51
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.
...