Buying six doughnuts from four types
A bakery offers types of doughnut with plenty of each in stock. You buy a box of doughnuts. Only how many of each type you take matters, not the order, and you may take several of the same type or none of some types.
How many different boxes of are possible?
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
Distinct arrangements of the letters in BANANADistinct arrangements of the letters in BALLOONRaising a flag sequence with two colorsDistinct arrangements of the letters in MISSISSIPPILining up pennies, nickels, and dimes
All questions →