Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created March 18, 2015 20:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lettergram/88a824105261e54fd0e6 to your computer and use it in GitHub Desktop.
# 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