Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
What is the maximum number of times we would want to go around the track without changing tires?
Can we precompute the minimum time to go around the track x times without changing tires?
Can we use dynamic programming to solve this efficiently using the precomputed values?