Skip to content

Commit eb28b1c

Browse files
solves inner and outer
1 parent d1cc70c commit eb28b1c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

numpy-python/inner-outer.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)