Skip to content

Commit 3c14008

Browse files
solves concatenate
1 parent f167e7f commit 3c14008

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

numpy-python/concatenate.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://www.hackerrank.com/challenges/np-concatenate/problem
2+
3+
import numpy
4+
5+
N, M, P = map(int, input().split())
6+
7+
data1 = []
8+
for _ in range(N):
9+
data1.append(list(map(int, input().split())))
10+
11+
data2 = []
12+
for _ in range(M):
13+
data2.append(list(map(int, input().split())))
14+
15+
result = numpy.concatenate((data1, data2), axis=0)
16+
print(result)

0 commit comments

Comments
 (0)