
[LeetCode] 857. Minimum Cost to Hire K Workers (Java)
·
알고리즘 및 데이터 구조/LeetCode
✅ 문제There are n workers. You are given two integer arrays quality and wage where quality[i] is the quality of the ith worker and wage[i] is the minimum wage expectation for the ith worker.We want to hire exactly k workers to form a paid group. To hire a group of k workers, we must pay them according to the following rules:Every worker in the paid group must be paid at least their minimum wage ex..