Maybe N steps are needed to partition the tasks array.