We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1cc70c commit eb28b1cCopy full SHA for eb28b1c
numpy-python/inner-outer.py
@@ -0,0 +1,10 @@
1
+# https://www.hackerrank.com/challenges/np-inner-and-outer/problem
2
+
3
+import numpy
4
+numpy.set_printoptions(legacy='1.13')
5
6
+A = numpy.array(list(map(int, input().split())))
7
+B = numpy.array(list(map(int, input().split())))
8
9
+print(numpy.inner(A, B))
10
+print(numpy.outer(A, B))
0 commit comments