dsalgo 0.3.7

A package for Datastructures and Algorithms.
Documentation
use crate::{
    choose::Choose,
    combination::Combination,
    multiplicative_inverse::MulInv,
};

impl<T> Choose<T> for Combination<T>
where
    T: std::ops::Mul<Output = T> + From<u64> + Clone,
{
    fn choose(&mut self, n: u64, k: u64) -> T { self.calc(n, k) }
}