Skip to content

Instantly share code, notes, and snippets.

Embed
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):
elevator.append(0)
for i in range(1, floorCount):
elevator = addFloor(elevator)
printeleLoop(elevator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment