Six tasks A, B, C, D, E and F occupy slots 1 to 6, one each. D is in slot 1 and C in slot 6. B is immediately after A. E is immediately before F. A is before E. Which task is in slot 4?
Show answer
Explanation
Slots 2-5 must hold the blocks A-B and E-F, in that order. The full schedule is D, A, B, E, F, C.