You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Reverse copy an array by iterating from end of source to beginning
🧠 Logic:
- Given array `A` is copied into array `B` in reverse order.
- Loop runs from end of `A` (`A.length-1`) to start, while inserting into `B` from index 0 onward.
- Demonstrates how to reverse an array during the copy process.
- Final result is printed using an enhanced for-loop.
Signed-off-by: Somesh diwan <[email protected]>
0 commit comments