Create a function that accepts a numeric vector and returns only the even numbers.
MediumProblem Statement
Create a function that accepts a numeric vector and returns only the even numbers.
Sample Input
Vector: c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Sample Output
[1] 2 4 6 8 10
Limits
Time: 2s · Memory: 256 MB