Can All Tasks Meet Their Deadlines
Asked at D. E. Shaw · Coding Questions · Difficulty: Medium · Last asked Nov 23, 2026
A single worker has a list of tasks. Each task takes a fixed amount of time and has a deadline by which it must be done. The worker starts at time 0, runs one task at a time, and once a task starts it runs to the end without a break. Decide whether some order of the tasks lets every task finish by its deadline.
Loading the problem…