+ 1

How to reverse a given array

8th Dec 2016, 4:21 PM
Ashwin George
Ashwin George - avatar
2 ответов
+ 2
you can swap the first with last value, second with the one before last and so on. proceed until you reached the middle element. now your array is reversed
8th Dec 2016, 7:33 PM
Peter
+ 1
Thanks bro
9th Dec 2016, 3:10 AM
Ashwin George
Ashwin George - avatar