Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

. 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
24111
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 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions