You are given n and
You need to distribute all n candies into the k bags such that each bag contains at least
Return the total number of ways to distribute the candies. Since the answer may be large, return it modulo
Note: Bags are identical, so the order of the bags does not matter. Two distributions are considered different if there exist two candies that are in the same bag in one distribution but in different bags in the other distribution.
Constraints:
k n
You are given n and
You need to distribute all n candies into the k bags such that each bag contains at least
Return the total number of ways to distribute the candies. Since the answer may be large, return it modulo
Note: Bags are identical, so the order of the bags does not matter. Two distributions are considered different if there exist two candies that are in the same bag in one distribution but in different bags in the other distribution.
Constraints:
k n