Loading page…
In a greedy by sorting, the sort makes the choice and one pass applies it, so the work is finding a safe key. The exchange test finds it: swap two neighbours and compute the change. It gives the end time for keeping the most requests, length over weight for print jobs, and a difference of two costs for a split. A value on each request breaks the end-time rule.
Your team lead says: we cannot double-book the meeting room.