Minimum Cost For Tickets

medium
https://leetcode.com/problems/minimum-cost-for-tickets/

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input

        
Output

        
Previous
The Skyline Problem
Next
Pancake Sorting

Related Questions