You are given an integer array timeReq and an integer splitTime. There are timeReq.length bacterial strains that need to be eliminated, where the bacterial strain at index i requires timeReq[i] units of time to be eliminated by a single white blood cell (WBC).
Initially, at time
Split into splitTime units of time.
Eliminate an uneliminated bacterial strain i, which takes timeReq[i] units of time. Once a WBC begins eliminating a strain, it cannot be reused.
Return the minimum time required to eliminate all bacterial strains.
Constraints:
timeReq.length
timeReq[i]
splitTime
You are given an integer array timeReq and an integer splitTime. There are timeReq.length bacterial strains that need to be eliminated, where the bacterial strain at index i requires timeReq[i] units of time to be eliminated by a single white blood cell (WBC).
Initially, at time
Split into splitTime units of time.
Eliminate an uneliminated bacterial strain i, which takes timeReq[i] units of time. Once a WBC begins eliminating a strain, it cannot be reused.
Return the minimum time required to eliminate all bacterial strains.
Constraints:
timeReq.length
timeReq[i]
splitTime