The Elevator Problem

You are on the bottom floor (floor 0, lets call it) of an apartment building with no basement. There are n elevators, which we index 1,2,…,n. Assume the elevators are on floors f1, f2, … , where fk > 0 is the floor elevator k is currently on, 1 <= k <= n. Assume you […]