pub fn count_permutations(
n_total: u64,
n_choose: u64,
) -> Result<u64, CombinatoricsError>Expand description
Count permutations - the number of ways to pick n_choose items from n_total,
where order matters.
ยงFormula
P(n, r) = n! / (n-r)!
Not defined for r > n.