Write a function that takes a list as argument and reverse
the list without using second list.
Answers
Answered by
0
Answer:
Python:-
def reverse(list):
i = 0
j = len(list)-1
while (i<j):
list[i], list[j] = list[j], list[i]
i += 1
j -= 1
Similar questions