Practice · 3 of 5
Selection sort (new array)
CHALLENGE
Difficulty: beginner+25 XP
Implement int[] selectionSort(int[] arr): return a NEW array sorted ascending, using selection sort. The input must stay unmodified (copy first).
Press Submit to check your solution.
Back to lesson: Practice: Search & sort reps