Given an elevator's current standing floor, its direction ('up' or 'down'), and a list of requested floor stops, determine the sequence of floors visited. The elevator continues in its current…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.