LLD - Design — Elevator System
Given the following state transitions:
What is the final state after the sequence of events:
idle --(moveUp)--> moving_up
moving_up --(stop)--> idle
idle --(moveDown)--> moving_down
moving_down --(stop)--> idleWhat is the final state after the sequence of events:
moveUp, stop, moveDown?