You are given two tasks and workers, where tasks[i] represents the strength required to complete the workers[j] represents the strength of the
You are also given two integers, pills and strength. You have pills magical pills available, each capable of increasing a worker’s strength by strength. Each worker may receive at most
Each worker can be assigned to at most
Return the maximum number of tasks that can be completed.
Constraints:
n == tasks.length
m == workers.length
n, m
pills m
tasks[i], workers[j], strength
You are given two tasks and workers, where tasks[i] represents the strength required to complete the workers[j] represents the strength of the
You are also given two integers, pills and strength. You have pills magical pills available, each capable of increasing a worker’s strength by strength. Each worker may receive at most
Each worker can be assigned to at most
Return the maximum number of tasks that can be completed.
Constraints:
n == tasks.length
m == workers.length
n, m
pills m
tasks[i], workers[j], strength