Problem 6. Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, starting with the first.
Solution CommentsShow comments
Problem Recent Solvers30270