Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The path from the root to a leaf that has the maximum cost should not be modified.
The optimal way is to increase all other paths to make their costs equal to the path with maximum cost.