Skip to content

Commit

Permalink
Fixed pep8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit167 authored Jun 27, 2017
1 parent 81df380 commit f0867b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions array/garage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# Each step swap with 0 only.
# Edited by cyberking-saga


def garage(initial, final):
steps = 0
while initial != final:
Expand All @@ -34,8 +35,8 @@ def garage(initial, final):
return steps

if __name__ == "__main__":
initial = [1,2,3,0,4]
final = [0,3,2,1,4]
initial = [1, 2, 3, 0, 4]
final = [0, 3, 2, 1, 4]
print("initial:", initial)
print("final:", final)
print(garage(initial, final))

0 comments on commit f0867b3

Please sign in to comment.