diff --git a/2022/day6-mini.py b/2022/day6-mini.py new file mode 100644 index 0000000..a8f790f --- /dev/null +++ b/2022/day6-mini.py @@ -0,0 +1,7 @@ +l=open('input/6','r').read() +def s(n): + for i in range(n,len(l)): + if len(set(l[i-n:i]))==n: + return print(i) +s(4) +s(14) \ No newline at end of file