You are given a list days, where days[i] represents a calendar day on which you plan to travel. You are also given travel pass costs for three different durations:
A costs[0].
A costs[1].
A costs[2].
A pass bought on day
Return the minimum total cost needed to cover all travel days in days.
Constraints:
days.length
days[i]
days is in strictly increasing order
costs.length
costs[i]
You are given a list days, where days[i] represents a calendar day on which you plan to travel. You are also given travel pass costs for three different durations:
A costs[0].
A costs[1].
A costs[2].
A pass bought on day
Return the minimum total cost needed to cover all travel days in days.
Constraints:
days.length
days[i]
days is in strictly increasing order
costs.length
costs[i]