Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
zip and chain.from_iterable solution in Clear category for Skew-symmetric Matrix by tokyoamado
from itertools import chain
def checkio(matrix):
trans = (-x for x in chain.from_iterable(zip(*matrix)))
return all(x == y for x, y in zip(chain.from_iterable(matrix), trans))
Nov. 26, 2019