HackerRank 10 Days of statistics
Permutations(์์ด):
If there are people and chairs.
People = {A, B, C, ... }
Chairs = {1,2,3, ... }
n = number of People
r = number of chairs
And if we let putting these five people in the five different chairs,
it is a scenario, a permutation.
(Click to see Khan Academy permutation lecture, if you need. )
When the number of people and chairs are the same.
The number of permutations = n!
When the number of chairs is smaller than the number of people.
The number of r-element permutations =
Combinations(์กฐํฉ):
If there are people and chairs.
n = The number of People
r = The number of chairs
Combination = How many ways to arrange r people.