Problem 42381. Dice roll - lateral faces
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
Dyuman Joshi
on 18 Dec 2020
@goc3, for cases with multiple inputs, you might wanna sort the answers for each case.
goc3
on 21 Dec 2020
@Dyuman Joshi: each answer is invariant with respect to input order.
Dyuman Joshi
on 29 Dec 2020
I don't remember why I wrote it here but this comment doesn't belong to this question. My Apologies.
Solution Comments
Show commentsProblem Recent Solvers44
Suggested Problems
-
Maximum running product for a string of numbers
2215 Solvers
-
Number of 1s in a binary string
10368 Solvers
-
Calculate the area of a triangle between three points
3308 Solvers
-
Returning a "greater than" vector
264 Solvers
-
Converter temp 0 to 200 degree C to 4 to 20mA
96 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!