You are viewing a single comment's thread. Return to all comments →
for i in range(0, n//2): temp = arr[i] arr[i] = arr[-1-i] arr[-1-i] = temp result = "" for i in arr: result = result + str(i) + " " print(result)
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 →