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.
5! = 5 × 4 × 3 × 2 × 1 = 120 possible orders for 5 items.
Permutations
[1, 1, 2] has ___ distinct permutations.
[1, 1, 2], [1, 2, 1] and [2, 1, 1]. The 6 produced without pruning repeat each one 2 times.
0/2
â–¶ Play