Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I'm having this problem too, but I'm pretty sure that this happens because of the repeated values in the array.
It is not clear (at least for me) what the scheduler should do if there are jobs with the same CPU Cycles as the job required.
For example, in the test we have:
[3, 10, 10, 20, 1, 2] 2
We need to execute only the jobs with less cycles than job at index 2 (10).
In that case, we execute 1 + 2 + 3 + 10 -> 16 cycles.
Or we also need to execute the jobs with the same length? 1 + 2 + 3 + 10 + 10 -> 26 cycles.