Untitled

 avatar
unknown
plain_text
a month ago
419 B
1
Indexable
You are given a array of task_types and also the respective memory required by each task for successful execution, each task takes 1 unit of time and at max two task of same type can be parallelised if the sum of their memory requirement is not breaching the max memory M


Evaluate minimum unit of time required to execute all the task


Tasktype : [1,2,1,2,2,3]
Memory : [4, 4,3,7,10,3]
M = 10


Output : 5
Leave a Comment