Question: Python Task Time Frame A Person having number of Tasks at the same time and n eeds to complete before the deadline. Each Task has

Python
Task Time Frame
A Person having number of Tasks at the same time and n eeds to complete before the deadline. Each Task has their own Deadlines, a person can complete limited number of tasks per day. Find the maximum number of tasks, that can complete before the deadline.
Create a function which can get an input as number of tas ks and number of tasks able to complete per day, followe d by the
number of days to met the deadline for each task and the function should return the number of tasks can be compl eted within the timeframe.
Sample Case 0
Sample Input For Custom Testing
52
2,4,1,1,1
Sample Output
4
Explanation
In the above case, totally there are 5 tasks we can complete 2 tasks per day, 3 tasks met the deadline in 1 day out of it 1 task can't be finished and other two tasks have deadline as 2 and 4 it can be finished within the deadline, so total number of tasks completed within the deadline is 43 solution needed for below
 Python Task Time Frame A Person having number of Tasks at

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!