you want schedule list job d day job dependent ie to work ith job finish job j 0 j iYou finish task day the difficulty job schedule sum difficulty day d day the difficulty day maximum difficulty job dayyou give integer array jobDifficulty integer d the difficulty ith job jobDifficultyiReturn minimum difficulty job schedule if find schedule job return 1 Example 1input jobdifficulty 654321 d 2output 7explanation First day finish 5 job total difficulty 6Second day finish job total difficulty 1the difficulty schedule 6 1 7 Example 2input jobdifficulty 999 d 4Output 1explanation if finish job day free day find schedule give jobsExample 3input jobDifficulty 111 d 3output 3explanation the schedule job day total difficulty 3 Constraints1 jobdifficultylength 3000 jobDifficultyi 10001 d 10