Algorithms

Permutation

Each of the ways to order a group of items. With n distinct items there are n! permutations.

Example

[1, 2, 3] has 6 permutations: [1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2] and [3, 2, 1].

Test yourself: Permutation

Permutations

With n distinct items there are n___ permutations.

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.