Skip to main content

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).

Back to lesson: Practice: Search & sort reps