Skip to content

Commit

Permalink
Use more meaningful variable names in Length.run_step
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Sep 29, 2018
1 parent 831f288 commit 690d749
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def left_is_better(self, left, right):
return len(left) < len(right)

def run_step(self):
j = 0
while j < len(self.current):
i = len(self.current) - 1 - j
skipped = 0
while skipped < len(self.current):
remaining = len(self.current) - skipped
start = self.current
find_integer(
lambda k: k <= i + 1 and self.consider(
start[:i + 1 - k] + start[i + 1:]
lambda k: k <= remaining and self.consider(
start[:remaining - k] + start[remaining:]
)
)
j += 1
skipped += 1

0 comments on commit 690d749

Please sign in to comment.