Algorithms and Data Structures · Middle · Question 50 of 75
How many permutations does an array of n distinct elements have?
✓Correct answer: n!
2n²
32ⁿ
Explanation
There are n choices for the first position, n - 1 for the second and so on. 10! is already 3.6 million, so generating all permutations works only for small n.