๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ซ ์ˆ˜ํ•™

Day 3: Permutations, Combinations

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.