Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Find Sequence by Michal_Cichy
def checkio(tab):
rozm=len(tab)-1
for yy in range(rozm+1):
for xx in range(rozm):
x=xx
y=yy
sekw=1
while x=4:
return True
x=xx
y=yy
sekw=1
while y=4:
return True
x=xx
y=yy
sekw=1
while x=4:
return True
x=xx
y=yy
sekw=1
while x0:
if tab[y][x]!=tab[y-1][x+1]:
sekw=1
else: sekw+=1
x+=1
y-=1
if sekw>=4:
return True
x=len(tab)-1
y=0
sekw=1
while y=4:
return True
return False
Dec. 4, 2016