Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Find Sequence by sts10131
def checkio(matrix):
length=len(matrix)
h1=1
h2=1
h3=1
h4=1
h5=1
h6=1
for x in range(0,length):
for y in range(1,length):
if y-x>0 and matrix[y-x][y]==matrix[y-1-x][y-1]:
h3+=1
else:
h3=1
if y+x0 and matrix[-y-x-1][y]==matrix[-y-x][y-1]:
h5+=1
else:
h5=1
if length-y+x>0 and length-y+x
Dec. 27, 2016