Input{"jobs":[[0,1000,10000],[1000,2000,10000],[2000,3000,10000],[3000,4000,10000],[4000,5000,10000],[5000,6000,10000],[6000,7000,10000],[7000,8000,10000],[8000,9000,10000],[9000,10000,10000],[10000,11000,10000],[11000,12000,10000],[12000,13000,10000],[13000,14000,10000],[14000,15000,10000],[15000,16000,10000],[16000,17000,10000],[17000,18000,10000],[18000,19000,10000],[19000,20000,10000],[20000,21000,10000],[21000,22000,10000],[22000,23000,10000],[23000,24000,10000],[24000,25000,10000],[25000,26000,10000],[26000,27000,10000],[27000,28000,10000],[28000,29000,10000],[29000,30000,10000],[30000,31000,10000],[31000,32000,10000],[32000,33000,10000],[33000,34000,10000],[34000,35000,10000],[35000,36000,10000],[36000,37000,10000],[37000,38000,10000],[38000,39000,10000],[39000,40000,10000],[40000,41000,10000],[41000,42000,10000],[42000,43000,10000],[43000,44000,10000],[44000,45000,10000],[45000,46000,10000],[46000,47000,10000],[47000,48000,10000],[48000,49000,10000],[49000,50000,10000],[50000,51000,10000],[51000,52000,10000],[52000,53000,10000],[53000,54000,10000],[54000,55000,10000],[55000,56000,10000],[56000,57000,10000],[57000,58000,10000],[58000,59000,10000],[59000,60000,10000],[60000,61000,10000],[61000,62000,10000],[62000,63000,10000],[63000,64000,10000],[64000,65000,10000],[65000,66000,10000],[66000,67000,10000],[67000,68000,10000],[68000,69000,10000],[69000,70000,10000],[70000,71000,10000],[71000,72000,10000],[72000,73000,10000],[73000,74000,10000],[74000,75000,10000],[75000,76000,10000],[76000,77000,10000],[77000,78000,10000],[78000,79000,10000],[79000,80000,10000],[80000,81000,10000],[81000,82000,10000],[82000,83000,10000],[83000,84000,10000],[84000,85000,10000],[85000,86000,10000],[86000,87000,10000],[87000,88000,10000],[88000,89000,10000],[89000,90000,10000],[90000,91000,10000],[91000,92000,10000],[92000,93000,10000],[93000,94000,10000],[94000,95000,10000],[95000,96000,10000],[96000,97000,10000],[97000,98000,10000],[98000,99000,10000],[99000,100000,10000]]}
Expectednull
⏱ Performance - must finish in 2000ms
n=100 jobs with fixed length intervals, O(n log n) solution must complete within 2 seconds.
✓ Efficient O(n log n) solution passes performance test.