Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Find Sequence solution in Clear category for Find Sequence by mz97
def checkio(tab):
s=1
l=len(tab[0])
#horizontal
for i in range(l):
for j in range(len(tab[0])):
if j0:
if tab[n][m]==tab[n+1][m-1]:
s+=1
if s==4:
return True
else:
s=1
n+=1
m-=1
s=1
return False
Oct. 22, 2016