Select the Nearest Eligible Elevator
Company: Pinterest
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Select the nearest elevator eligible for a passenger based on current floor, movement state, and requested direction. Specify same-floor behavior, idle cars, deterministic tie breaking, empty input, and what extra trip information a time-ordered simulation would require.
Read the full Pinterest Software Engineer interview experience this question came from