Quick Sort

Here's an example of how to sort a list of socks using the Quick Sort algorithm.

Imagine you're at a laundry mat, and you need to sort your 10 socks into order.

Step 1: Choose a pivot

Choose any sock as the pivot. This will be our reference point for the sorting process.

Go to Bubble Sort

Now that we've chosen our pivot, let's use Selection Sort instead.

Note: This page is still a work-in-progress. I'm happy to revise and expand upon it as needed!