Array
983. Minimum Cost For Tickets
Given sorted travel days and the prices of 1-day, 7-day, and 30-day passes, find the minimum cost to cover every travel day (a pass bought on day d covers [d, d+k-1]). The clean framing: the decision…
Loading…
Given sorted travel days and the prices of 1-day, 7-day, and 30-day passes, find the minimum cost to cover every travel day (a pass bought on day d covers [d, d+k-1]). The clean framing: the decision…
Loading…