Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 253 Bytes

README.md

File metadata and controls

16 lines (8 loc) · 253 Bytes

ReverseArray-Challenge Challenge quest - easy category - leetcode

Write a Function/method ReverseArray(a) that takes and array of integers and reverses it

e.g [1,4,5,6,9,8]->[8,9,6,5,4,1]

Solution

a = [1,4,5,6,9,8]

x = a.reverse()

print(a)