Problem 46072. Rock Paper Scissors Lizard Spock
Solution Stats
Problem Comments
-
6 Comments
Is there any reason the order of the solution should matter (e.g., {'rock','paper'} vs {'paper','rock'})?
I had the same question as Tim and struggled to find a pattern. I never did find one.
Yeah sorry there was no pattern or order, I kind of just threw it together. I'll fix the test suite to accept any valid combination
Should be fixed now to accept any order of two elements. Thanks for the feedback!
Thank you. :-)
Thanks Hope. There's also the issue that I've been muttering "Rock, Paper, Scissors, Lizard, Spock" as an earworm since solving this problem, but I suppose there's nothing you can do to fix that.
Solution Comments
Show commentsProblem Recent Solvers20
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8984 Solvers
-
3334 Solvers
-
Duplicate each element of a vector.
614 Solvers
-
Calculate the area of a triangle between three points
3122 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
757 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!