adventofcode2022/day06/sol.py

7 lines
139 B
Python
Raw Normal View History

2022-12-06 05:04:36 +00:00
N = 14
for l in open("input"):
for i in range(0, len(l)):
if len(set(l[i:i+N])) == N:
print(i+N)
break