Update day 8 solution
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-08 08:11:13 +01:00
parent 14373dfc17
commit fda97ac9ea

View File

@@ -37,10 +37,6 @@ def part_2(input):
code['7'] = d
elif len(d) == 7:
code['8'] = d
if '1' not in code:
code['1'] = ''.join(set(code['4']).intersection(code['7']))
if '8' not in code:
code['8'] = 'abcdefg'
for d in inp:
if len(d) == 6:
if len(''.join(set(code['4']).intersection(d))) == 4: