You are given two integer arrays costs and capacity, both of length n, and an integer budget.
You may choose at most budget.
Return the maximum total capacity that can be obtained. If no machines can be selected, return
Constraints:
costs.length capacity.length
costs[i], capacity[i]
budget
You are given two integer arrays costs and capacity, both of length n, and an integer budget.
You may choose at most budget.
Return the maximum total capacity that can be obtained. If no machines can be selected, return
Constraints:
costs.length capacity.length
costs[i], capacity[i]
budget