-
I'm very curious on this and I would appreciate it if someone could answer my question on this subject, as I don't have the most experience, and I know there's programmers out there who could assist me on my question. thank you if you do decide to help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The idea is to use a temporary array to store the reverse of the array. |
Beta Was this translation helpful? Give feedback.
The idea is to use a temporary array to store the reverse of the array.
Create a temporary array of same size as the original array.
Now, copy all elements from original array to the temporary array in reverse order.
Finally, copy all the elements from temporary array back to the original array.