You are given an integer array workers and a two dimensional integer array tasks, where tasks[i] = [requirement_i, profit_i] indicates that the requirement_i and yields a profit of profit_i.
Each worker in workers has a skill level equal to workers[i] and can complete at most workers[i].
In addition, there is
Each task can be completed at most once by at most
Return the maximum total profit that can be obtained from completing the tasks.
Constraints:
workers.length
workers[i]
tasks.length
tasks[i].length
tasks[i][0], tasks[i][1]
You are given an integer array workers and a two dimensional integer array tasks, where tasks[i] = [requirement_i, profit_i] indicates that the requirement_i and yields a profit of profit_i.
Each worker in workers has a skill level equal to workers[i] and can complete at most workers[i].
In addition, there is
Each task can be completed at most once by at most
Return the maximum total profit that can be obtained from completing the tasks.
Constraints:
workers.length
workers[i]
tasks.length
tasks[i].length
tasks[i][0], tasks[i][1]