AlgoMaster Logo

Minimum Cost For Tickets

days=[1, 4, 6, 7, 8, 20],costs=[2, 7, 15]
0 / 146
algomaster.io
Step:Cover 1, 4, 6, 7, 8, 20 for the least money: passes cost $2 (1 day), $7 (7 days), $15 (30 days)