There are milestones, where each milestones[i] represents the number of milestones required to complete project
You plan to work on the projects week by week following these rules:
In each week, you can complete exactly
You cannot work on milestones of the same project in two consecutive weeks.
Return the maximum number of weeks you can work without violating the given rules.
Constraints:
n milestones.length
n
milestones[i]
There are milestones, where each milestones[i] represents the number of milestones required to complete project
You plan to work on the projects week by week following these rules:
In each week, you can complete exactly
You cannot work on milestones of the same project in two consecutive weeks.
Return the maximum number of weeks you can work without violating the given rules.
Constraints:
n milestones.length
n
milestones[i]