Splitting fifteen tokens into three piles
You split identical tokens into labeled piles (pile A, pile B, pile C). A pile may be empty.
How many ways can this be done? (Equivalently, how many non-negative integer solutions does have?)
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
Handing out ten candies among four kidsPlacing eight apples into three basketsGiving twelve pencils so everyone gets oneBuying six doughnuts from four typesWill every room get a guest?
All questions β