logo CodeStepByStep logo


Language/Type: Python sorting selection sort
Related Links:

Consider the following list. After a single pass of the selection sort algorithm (a single swap), what would be the state of the list?

numbers = [29, 17, 3, 94, 46, 8, -4, 12]
list state

You must log in before you can solve this problem.

Log In

Need help?

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

Is there a problem? Contact a site administrator.

©, all rights reserved.