logo Practice-It logo

selectionSort

Language/Type: Java selection sort sorting
Author: Roy McElmurry

Write the elements of the array below after each of the first 3 passes of the outermost loop of a selection sort.

int[] numbers = {6, 3, 9, 7, 4, 1, 8, 2};
selectionSort(numbers);
after pass 1
after pass 2
after pass 3

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.