Practice · 4 of 5
Build a reversed copy
CHALLENGE
Difficulty: beginner+25 XP
Implement int[] reversed(int[] arr): a NEW array with the elements in opposite order. The original must be untouched — this is the copy-vs-reference test.
Press Submit to check your solution.
Back to lesson: Practice: Array reps