Single-Elevator Simulation with Full-Sweep and Early-Turn Scheduling

Problem

Implement a discrete-time simulation for a building with one elevator. Floors are numbered 0 through F-1, and the initial direction is upward. Implement two versions of `do_tick(buildin...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: