Wednesday, January 1, 2020

Linear Algebra - Hacker Rank Solution

The NumPy module also comes with a number of built-in routines for linear algebra calculations. These can be found in the sub-module linalg.

Linear Algebra - Hacker Rank Solution

  This can be solved using the linalg.det tool.

import numpy

print numpy.linalg.det([ map(float, raw_input().split()) for i in range(int(raw_input()))])

No comments:

Post a Comment

Powered by Blogger.