Permutation

A permutation is an ordering of a set of items.

Example: all permutations of 'tom':

  • tom
  • tmo
  • omt
  • otm
  • mto
  • mot

Not to be confused with a combination, which is an unordered set or subset.

Last updated: June 7, 2026

What's next?

If you're ready to start applying these concepts to some problems, check out our mock coding interview questions.

They mimic a real interview by offering hints when you're stuck or you're missing an optimization.

Try some questions now

. . .