There is a tree consisting of roads[i]
A representative from each city must travel to the capital to attend a meeting. There is initially one representative in each city.
Each car has an integer capacity of seats passengers. Driving a car between two directly connected cities consumes
Return the minimum total liters of fuel needed for all representatives to reach the capital.
Constraints:
roads.length
roads[i].length
roads represents a valid tree.
seats
There is a tree consisting of roads[i]
A representative from each city must travel to the capital to attend a meeting. There is initially one representative in each city.
Each car has an integer capacity of seats passengers. Driving a car between two directly connected cities consumes
Return the minimum total liters of fuel needed for all representatives to reach the capital.
Constraints:
roads.length
roads[i].length
roads represents a valid tree.
seats