CODE DRILL 2 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Implement ascending selection sort for [29, 18, 7, 14, 3]. After each of the four passes, print the complete array, and skip the data-moving swap when minIndex equals i.
OUTPUT
Sample[3, 18, 7, 14, 29] [3, 7, 18, 14, 29] [3, 7, 14, 18, 29] [3, 7, 14, 18, 29]
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.