New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to reverse a given array
2 Answers
+ 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
+ 1
Thanks bro