Given arrays A and B are:
A: 50, 35, 20, 14, 6
B: 20, 6, 4, 3
Write an algorithm such that we get a final array C as follows:
C: 50, 35 20, 20, 14, 6, 6, 4, 3
Apply same algorithm on given arrays A and B to get C
Answers
Answered by
0
ANSWER:
A=[50,35,20,14,6]
B=[20,6,4,3]
C=A+B
C.sort()
C.reverse()
print(C)
Similar questions