LLD - Design — Elevator System
Consider a system where the state changes based on commands:
What will be the state after starting at
if current_state == moving_up and command == moveDown: current_state = moving_downWhat will be the state after starting at
moving_up and receiving moveDown command?