How to design a elevator ?
Anonymous
We use two queue. One to store the requests for the elevator to go up and the other to go down. We also need to write logic so that we make the life serve the nearest floor.
Check out your Company Bowl for anonymous work chats.