Please enable JavaScript to use CodeHS

Chapter 7

ArrayLists

7.6 Sorting

Selection Sort

Insertion Sort

Selection Sort

Insertion Sort

Visualizing Algorithms

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Explore Insertion Sort

Vocabulary

Term Definition
Selection Sort A sorting algorithm that swaps the minimum value left in an array with the current array index.
Insertion Sort A sorting algorithm that shifts the already sorted section of an array to place the current array value in the correct index.

Do you have feedback on this lesson? Let us know here
Rate this lesson:

Feedback on this lesson:

Issue found (optional):