Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1953. Maximum Number of Weeks for Which You Can Work
Given milestone counts for projects and the rule you must do exactly one milestone per week without working the same project in consecutive weeks, compute the maximum number of weeks you can work. Key insight: if the largest project's milestones dominate, you can only interleave them with others, so the answer is min(total_milestones, 2*(total_milestones - max_milestones) + 1).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.