You are viewing a single comment's thread. Return to all comments →
simple python implementation:
import sys
n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
a = '' i = len(arr)-1
while i >= 0: a += (str(arr[i])+' ') i -= 1
print(a)
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 →
simple python implementation:
!/bin/python3
import sys
n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
a = '' i = len(arr)-1
while i >= 0: a += (str(arr[i])+' ') i -= 1
print(a)