You are given an integer array nums of length n and an integer k, where n is divisible by k.
Divide the array into k contiguous subarrays of equal size. Reverse each of the k subarrays in place and return the modified array.
Constraints:
n nums.length
nums[i]
k n
n is divisible by k.
You are given an integer array nums of length n and an integer k, where n is divisible by k.
Divide the array into k contiguous subarrays of equal size. Reverse each of the k subarrays in place and return the modified array.
Constraints:
n nums.length
nums[i]
k n
n is divisible by k.