Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
fuglede committed Dec 1, 2023
2 parents 421a997 + e3c85da commit 0000df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2015/day11/solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def has_three_straight(s):
return False


def has_no_iou(s):
return 'i' not in s and 'o' not in s and 'u' not in s
def has_no_iol(s):
return 'i' not in s and 'o' not in s and 'l' not in s


def has_double_pair(s):
Expand All @@ -42,7 +42,7 @@ def has_double_pair(s):
def solve(s):
while True:
increase(s, len(s)-1)
if has_three_straight(s) and has_no_iou(s) and has_double_pair(s):
if has_three_straight(s) and has_no_iol(s) and has_double_pair(s):
return ''.join(s)


Expand Down

0 comments on commit 0000df0

Please sign in to comment.