For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at least one. Your function should return the sum of the lateral faces of the dice. See the test suite for examples.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers44
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15779 Solvers
-
Sort a list of complex numbers based on far they are from the origin.
5793 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
864 Solvers
-
Find the position of first minimum value in an integer array with numbers
183 Solvers
-
Solving Quadratic Equations (Version 1)
503 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
@goc3, for cases with multiple inputs, you might wanna sort the answers for each case.
@Dyuman Joshi: each answer is invariant with respect to input order.
I don't remember why I wrote it here but this comment doesn't belong to this question. My Apologies.