Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Determinant by kurosawa4434
def checkio(data):
if len(data) == 1:
return data[0][0]
total = 0
for i, m in enumerate(data[0]):
total += ((-1)**i * m * checkio([row[:i]+row[i+1:] for row in data[1:]]))
return total
July 23, 2016
Comments: