Agoda, Recently Asked Online Assessments in 2026 | Parallel Task Scheduling | Greedy Algorithms & Two Pointers | Campus Assessment
Question · Posted Apr 2026
Question `: Parallel Task Scheduling Problem Statement: Given an array taskMemory of n positive integers representing memory required for each task, an array taskType of n positive integers representing task types, and an integer maxMemory, find the minimum time required to process all tasks. Each task takes 1 unit of time. The server can process at most two tasks in parallel only if they are the same type and together require no more than maxMemory units. Example: Suppose n = ...
The full answer & interview discussion are available to premium members.
Log in Create a free account