Hi,
from the challenge description I would expect that the answer for following processes would be "2" but it was incorrect:
0 4 1 11 2 3 3 12
If I understood it correctly, the flow should be:
P0 executes for 4ms and completes.
P1 executes for 4ms.
P2 executes for 3ms and completes.
Hence the answer "2".
Did I misunderstood something? Or maybe the timeout is really low (it seemed to have been answered instantly though)?
Hi,
from the challenge description I would expect that the answer for following processes would be "2" but it was incorrect:
0 4 1 11 2 3 3 12
If I understood it correctly, the flow should be:
P0 executes for 4ms and completes.
P1 executes for 4ms.
P2 executes for 3ms and completes.
Hence the answer "2".
Did I misunderstood something? Or maybe the timeout is really low (it seemed to have been answered instantly though)?
You're right, there was a bug there. I had forgotten it was starting at 0 instead of 1. Should work fine now.
You're right, there was a bug there. I had forgotten it was starting at 0 instead of 1. Should work fine now.