Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
recursive list (in)comprehension solution in Creative category for Determinant by ssk8
def checkio(matrix):
if len(matrix)==1: return matrix[0][0]
else: return sum([(-1)**index*element*checkio([[matrix[x][y] for y in range(0,len(matrix)) if y!=index] for x in range(1,len(matrix))]) for index, element in enumerate(matrix[0])])
Nov. 26, 2016
Comments: