Diagonal Difference

  • + 0 comments

    For Python3 solution

        result = 0
        for i in range(len(arr)):
            result += arr[i][i] - arr[i][len(arr)-1-i]
        return abs(result)