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
-
Select every other element of a vector
36149 Solvers
-
Replace NaNs with the number that appears to its left in the row.
3062 Solvers
-
Number of 1s in the Binary Representation of a Number
479 Solvers
-
Set the array elements whose value is 13 to 0
1437 Solvers
-
Determine the number of odd integers in a vector
822 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.