Rosetta Problems

Maximize Sum of Weights after Edge Removals

https://leetcode.com/problems/maximize-sum-of-weights-after-edge-removals