You are given an array of integers jobDifficulty and an integer d. The difficulty of the job at index i is jobDifficulty[i].
You must schedule all the jobs over d days. The jobs must be completed in the given order, meaning that you must finish all preceding jobs before starting the next one.
You must complete at least d days.
Return the minimum total difficulty of a job schedule. If it is impossible to schedule all the jobs over d days, return
Constraints:
jobDifficulty.length
jobDifficulty[i]
d
You are given an array of integers jobDifficulty and an integer d. The difficulty of the job at index i is jobDifficulty[i].
You must schedule all the jobs over d days. The jobs must be completed in the given order, meaning that you must finish all preceding jobs before starting the next one.
You must complete at least d days.
Return the minimum total difficulty of a job schedule. If it is impossible to schedule all the jobs over d days, return
Constraints:
jobDifficulty.length
jobDifficulty[i]
d