Math
2929. Distribute Candies Among Children II
Given n candies and a limit limit. Count the ways to distribute all n candies among three children so that each gets at most limit. The number of non-negative solutions to x + y + z = n with upper…
Loading…