Problem statement not available.
Solutions for this problem are being prepared.
Try solving it yourselfPractice Total Sum of Interaction Cost in Tree Groups II with our built-in code editor and test cases.
Practice on FleetCodePractice this problem
Open in Editor