Pivot in quicksort

[5, 8, 2, 9, 1], pivot 5 → index 2

You can also choose a level by clicking its number.

About the course

Description
At which index the pivot ends up when the array is split into smaller and larger elements
More information
Arrays are indexed from zero. Sorting is ascending (from the smallest) unless stated otherwise.
Sample question
[5, 8, 2, 9, 1], pivot 5 → index 2
Author
Jiří Preisler
Version
1.0