In this HackerRank Linear Algebra problem solution, You are given a square matrix A with dimensions NXN. Your task is to find the determinant. Note: Round the answer to 2 places after the decimal.

HackerRank Linear Algebra in python problem solution

HackerRank Linear Algebra in python problem solution

import numpy
N = int(input().strip())
A = []
for i in range(N):
    A.append(numpy.array(list(map(float,input().split()))))

print (numpy.linalg.det(A))