Problem 3865 · Easy

Reverse K Subarrays

Split the array into k equal blocks and reverse each block in place, two positions at a time.

Open the interactive visualisation