Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 1
How to reverse a given array
2 odpowiedzi
+ 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