Total Cost to Hire K Workers at MathWorks
Medium43.5% acceptance
This problem has 100.0% frequency at MathWorks.
Problem Description
You are given a **0-indexed** integer array `costs` where `costs[i]` is the cost of hiring the `ith` worker. You are also given two integers `k` and `candidates`. We want to hire exactly `k` workers according to the following rules: * You will run `k` sessions and hire exactly one worker in each...
Read full problem and hintsTopics
Also asked at 2 companies
More MathWorks Questions
Maximum Number of AlloysMediumReshape the MatrixEasyMaximum Palindromes After OperationsMediumSell Diminishing-Valued Colored BallsMediumLast Substring in Lexicographical OrderHard
View all MathWorks questions