Leetcode 3119. Maximum Number of Potholes That Can Be Fixed
Given positions and repair costs for potholes along a road and a limited time or budget, determine the maximum number you can fix while accounting for travel and repair costs. The core challenge is selecting an optimal subset under a cumulative-cost constraint, typically solved by sorting and using greedy/priority-queue or sliding-window techniques to maintain the most affordable repairs.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.