You are given a arr consisting of positive integers, and a positive integer k.
The array arr is defined as arr[i - k] arr[i] holds for all indices i such that i arr.length.
In a single operation, you can choose any index i and replace arr[i] with any positive integer.
Return the minimum number of operations required to make arr
Constraints:
arr.length
arr[i], k arr.length
You are given a arr consisting of positive integers, and a positive integer k.
The array arr is defined as arr[i - k] arr[i] holds for all indices i such that i arr.length.
In a single operation, you can choose any index i and replace arr[i] with any positive integer.
Return the minimum number of operations required to make arr
Constraints:
arr.length
arr[i], k arr.length