Write a function to compute the mode of a numeric vector.
MediumProblem Statement
Write a function to compute the mode of a numeric vector.
Sample Input
Vector: c(1, 2, 2, 3, 3, 3, 4, 4, 5)
Sample Output
Mode: 3
Limits
Time: 2s · Memory: 256 MB
Write a function to compute the mode of a numeric vector.
Vector: c(1, 2, 2, 3, 3, 3, 4, 4, 5)
Mode: 3
Time: 2s · Memory: 256 MB