MicrolearnENPTES

Quicksort

Lesson 8 of 20 · Algo.Micro

Pick a pivot, put smaller values left and bigger right, repeat on each side.

Take the last value as pivot (orange). Walk through the others: every value smaller than the pivot is swapped to the left side. Finally the pivot goes between the two sides: its final place.

Check yourself

After partitioning, where is the pivot?

Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.

Start this lesson — free
← Merge sortStacks →

All lessons · Algo.Micro