You are viewing a single comment's thread. Return to all comments →
def reverseArray(a): reversed_list = [] for i in range(len(a)): reversed_list.append(a[len(a) - 1 - i]) return reversed_list
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 →
def reverseArray(a): reversed_list = [] for i in range(len(a)): reversed_list.append(a[len(a) - 1 - i]) return reversed_list