Ezvor

2323. Find Minimum Time to Finish All Jobs II

MediumArray Preparing judge… LeetCode
ArrayGreedySorting

Hints

Hint 1
It is always optimal to pair the worker with the least amount of time with the job that requires the least amount of time.
Hint 2
Sort both arrays.