Given b choices of beverages, e choices of entrees, s choices of sides (take two different sides total) and d choices of desserts, how many different meal combinations are possible?
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers64
Suggested Problems
-
Find out missing number from a vector of 9 elements
320 Solvers
-
Side of an equilateral triangle
6869 Solvers
-
189 Solvers
-
536 Solvers
-
Rotate a matrix for 180 degree
215 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The solutions to the test suite assume that the number of sides choices is s*(s-1). In my opinion that's wrong, it should be nchoosek(s, 2). That is the order of the sides do not matter. sides [x y] is the same as sides [y x].
Agree with Guillaume
Do you have anything that's gluten free? :-)
I agree with Guillaume