This question was asked to me during company interview - Which data-structure is efficient for Implementing Elevator Mechanism?
I am not able to find the efficient data-structure for it even after a lot of Googling.
I can think of Priority queue to Implement it.Is priority queue an efficient data structure or more efficient data structure is there for implementing Elevator Mechanism?
Thanks!