AlgoMaster Logo

Single-Threaded CPU

enqueueTimes=[1, 2, 3, 4],processingTimes=[2, 4, 2, 1],tasks=[[1,2], [2,4], [3,2], [4,1]]
0 / 9
T0[1,2]T1[2,4]T2[3,2]T3[4,1]0246810always run the ready task with the shortest processing time
algomaster.io
Step:Start: 4 tasks as [enqueueTime, processingTime]