Handing out ten candies among four kids
You give out identical candies to children. Any child may receive any number, including zero, and the candies are indistinguishable, so only how many each child gets matters.
In how many ways can the candies be distributed?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion Β· reading is open to everyone
π‘ Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussionβ¦
Learn the concepts
The theory behind this question.
Related questions
Placing eight apples into three basketsGiving twelve pencils so everyone gets oneSplitting fifteen tokens into three pilesBuying six doughnuts from four typesWill every room get a guest?
All questions β