You are viewing a single comment's thread. Return to all comments →
one more solution!!
import sys
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
print(" ".join(str(x) for x in arr[::-1]))
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
one more solution!!
import sys
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
print(" ".join(str(x) for x in arr[::-1]))