I am asked to check if a vector contains another vector as a subvector. For example:
$$v_1 = (4, \underline{3, 4}, 9, 10, 28, 5, 12, \underline{3, 4})$$ $$v_2 = (3, 4)$$
The answer here will be two, since there are two instances of $v_2$ in $v_1$.
I know I have to use "if" but I dont really know how to write it down (I have tried).