Rosetta Problems

Number of Ways to Assign Edge Weights II

https://leetcode.com/problems/number-of-ways-to-assign-edge-weights-ii