You are given a tasks, where tasks[i] denotes the type of the space, which represents the minimum number of days that must intervene between any two tasks of the same type.
On each day, you can either execute the next task in tasks or take a break.
Return the minimum number of days required to complete all the tasks.
Constraints:
tasks.length
tasks[i]
space tasks.length
You are given a tasks, where tasks[i] denotes the type of the space, which represents the minimum number of days that must intervene between any two tasks of the same type.
On each day, you can either execute the next task in tasks or take a break.
Return the minimum number of days required to complete all the tasks.
Constraints:
tasks.length
tasks[i]
space tasks.length