educative.io

Educative

Why two priority queue required to track the floor where the elevator should stop?

How we are going to implement SCAN algorithm using two priorityQueues ?