DSA Advanced Problems

Time Taken to Cross the Door

Combine arrival queues, direction priority and idle-time jumps.