Leetcode 2071. Maximum Number of Tasks You Can Assign
Given tasks with strength requirements and workers with strengths (each worker can get at most one +strength pill, with only p pills available), find the maximum number of tasks that can be assigned so each assigned worker meets the task requirement (possibly after a pill); this is typically solved by checking feasibility for k assignments with a greedy matching and binary-searching k for efficiency on large inputs.
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.