You are given an integer n representing the number of cities labeled from n highways, where highways[i] = city1_i and city2_i with a toll cost of toll_i. You are also given an integer discounts, which denotes the maximum number of discount coupons you can use.
Applying a discount to a highway halves its toll, rounded down to the nearest integer (that is, discounts coupons during the entire journey.
Return the minimum total cost to travel from city n n
Constraints:
n
highways.length
highways[i].length
city1_i, city2_i n
city1_i city2_i
toll_i
discounts
There are no duplicate highways.
You are given an integer n representing the number of cities labeled from n highways, where highways[i] = city1_i and city2_i with a toll cost of toll_i. You are also given an integer discounts, which denotes the maximum number of discount coupons you can use.
Applying a discount to a highway halves its toll, rounded down to the nearest integer (that is, discounts coupons during the entire journey.
Return the minimum total cost to travel from city n n
Constraints:
n
highways.length
highways[i].length
city1_i, city2_i n
city1_i city2_i
toll_i
discounts
There are no duplicate highways.