Day 6 answer 2

This commit is contained in:
2022-12-06 07:24:41 +02:00
parent 6b716bf476
commit 51dd7d367a

View File

@@ -10,8 +10,8 @@ for x in input:
index += 1
index2 += 1
buf.append(x)
if len(buf) == 4:
if len(set(buf)) == 4:
if len(buf) == 14:
if len(set(buf)) == 14:
break
else:
buf.pop(0)