golfed on demand, python is bad at golf
This commit is contained in:
parent
0ac39a8b9a
commit
7ef16e556f
|
@ -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)
|
Loading…
Reference in New Issue