Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Allocate elevators
# Elevator[] represents the starting
# group of stops.
def elevatorAllocation(building, elevatorCount):
elevator = []
for i in range(elevatorCount + 1):
for i in range(1, floorCount):
elevator = addFloor(elevator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment