If we can give zero candy to person, is there any way to compute Fast "distribute n candies to r people" ??
if we can't give zero candy, solution is (n-1)C(r-1)
but we can give zero candy, I don't know how to compute fast
please help me
Compute "distribute n candies to to r people"
If we can give zero candy to person, is there any way to compute Fast "distribute n candies to r people" ??
if we can't give zero candy, solution is (n-1)C(r-1)
but we can give zero candy, I don't know how to compute fast
please help me