← All problems
Medium · Heap / Priority Queue

Single Threaded CPU

Simulate a CPU choosing the shortest available task then smallest index.

Full problem and submission ↗
main.js

Console

Ready