2928. Distribute Candies Among Children I
You are given two positive integers
n
andlimit
.Return the total number of ways to distribute
n
candies among3
children such that no child gets more thanlimit
candies.
1 | class Solution { |
2928. Distribute Candies Among Children I
You are given two positive integers
n
andlimit
.Return the total number of ways to distribute
n
candies among3
children such that no child gets more thanlimit
candies.
1 | class Solution { |