Passer au contenu

Sorting: bubble, selection, and insertion

English

Putting an array in order

  • Sorting rearranges an array so the items go from smallest to largest.
  • We sort in place: we move items around inside the same array, with no return value.
  • Three classic methods do this: bubble, insertion, and selection sort.

Fiche de cours

Se connecter ou créer un compte

IGCSE, A-Level & AP