Vector approach to the question

can you please tell me vector approach to this question

hello @adarshsingh2k

it is very easy.
for(int i=0;i<n;i+=k){
write logic to reverse values in range [i…i+k-1]

}

Can you help me with code as I have not worked on it

@adarshsingh2k

u mean u dont know vector?

yes i have not worked on vectors

u can use array .
vector is almost like array.

try to code it using array.
i will help u incase u stuck

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.