chevron_leftSorting All topics

Quick Sort

83519274

Quick sort picks one value as a pivot, then shoves everything smaller to its left and everything bigger to its right. The pivot lands in its final home — then it does the same to each side.

step 01/33

  • comparing
  • moving
  • in final place

Practice

spec · json ↗