Problem 43112. Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers54
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2957 Solvers
-
Number of 1s in a binary string
8575 Solvers
-
445 Solvers
-
Rotate a matrix for 180 degree
200 Solvers
-
186 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!