combinationsWithRep
Calculate the number combinations in a population size n, whilst selecting k items
int combinationsWithRep(int n, int k);combinationsWithRep(4, 2); //10
combinationsWithRep(5, 3); //35
combinationsWithRep(3, 2); //6Last updated