Pergunta de entrevista da empresa TrustArc

Code an elevator simulator in java.

Resposta da entrevista

Sigiloso

22 de set. de 2010

There are two schedules, Up schedule and down schedule. There are two concurrent threads (calls coming inside and outside of the elevator). Schedules are arrays. Elevator checks a boolean for each floor to stop or continue. Can be implemented in different ways. However, the time that they give is a little bit short.