int traverseMultiComb(int k, int n[k], int(*visit)(int kk, int nn[kk], int *b[kk], void *data), void *data)
Visit each way of allocating N balls among k boxes, such that there are b[0] balls in the first box,...
Definition: comb.c:195
long multinom(int k, int x[k])
Return N!/(prod x[i]!), the number of ways of allocating N = sum(x[i]) balls among k boxes,...
Definition: comb.c:292