Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SCHEDULING TRAINING II . A candidate named Alice is on boarding to Intuit. Intuit demands a required set of traininys to completed. There are N
SCHEDULING TRAINING II
A candidate named Alice is on boarding to Intuit. Intuit demands a required set of traininys to completed. There are trainings for Alve to compiete. Each of these trainings. has courses within them which have to be completed. The courses within a training need to be completed in the order they were created. Each course takes time to complete. once you start the course, you CAN pause it and resume it later from the same point.
Alice already has some prior commitments. She wants to complete all the trainings within days. Help her determine the order and time in which she can take these trainings, such that she can spend her time in the evening with her friends. Output the minimum time of the day required for herto complete all the trainings. The output can only be an integer value. Example, If the answer PM if Alice spends all the time she has on all days
ximize
Ss she would be able to complete
all trainings. Output if it is not possible to complete the trainings with her schedule
Constraints
Input Format
The first line has the number of test cases
The second line has space separated integer and denoting the total number of trainings, and the number of courses within trainings
Next lines each having space separated integers, stating the time taken for a course within the training.
Next line denotes the number of prior commitment that Alice has, denoted by
Next lines contain space separated integers, stating the starting time and ending
nize
O se commitments hr scale
Next line contain an integer K stating the number of days in which Alice needs to complete the trainings
Sample Input
table
table
Sample Output
Explanation
Alice can work from and hr s She has trainings to complete T and T
She takes
T Course and Course in Day
T Course and Course on Day
T course first hours on day
T course last hour on day
T course on day
She did not take trainings anyday post so the answer is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started