Senior Full Stack Developer
Stage 2: Getting Serious
We want to know more about how your skills can fit within the company. We’ll ask you more detailed questions to test the skills and tasks that the position requires.
The following task should take 3-4 hours. Please email us back the git link or the source code in a zip to email@example.com
We have a building with N elevators. A passenger calls an elevator on a certain floor and we need to know which elevator would stop for that passenger. We should consider a few parameters such as proximity to the passenger, current elevator direction, status (idle or moving up/down), etc. It’s up to you to decide which parameters are considered and prioritized, as long as you can explain your logic. Please note that the target floor is requested from the hall, not from within the elevator, like in many modern large buildings.