DEV Community

Discussion on: What is your favorite interview question?

Collapse
 
laurieontech profile image
Laurie

Design an elevator bank. The idea isn't to code anything, or make classes, or even a UML diagram. Just to talk through what it would look like/work from an operations perspective. it was a lot of fun!

Collapse
 
jnschrag profile image
Jacque Schrag

I've heard a lot of variations of this! Like "Design a bicycle" or "how would you make a PB&J sandwich?" with the goal of seeing how they walk through the steps in the process. Are they detail-oriented or do they focus on larger concepts first/what kind of assumptions do they make?

Collapse
 
laurieontech profile image
Laurie

I suspect it depends on the interviewer. In my case, I talked through how decisions would be made. I "homed" each elevator to the lobby when it wasn't in use. I had internal button presses override every other call, etc.

Then, the interviewer asked me for adaptations. Things like, what if you have multiple elevator banks? What if the building is 100 floors? Etc.