You are given an integer array nums of length n and an integer k.
An inversion in a subarray is defined as a pair of indices k and the element at index
Return the minimum number of inversions among all contiguous subarrays of length k.
Constraints:
n nums.length
nums[i]
k n
You are given an integer array nums of length n and an integer k.
An inversion in a subarray is defined as a pair of indices k and the element at index
Return the minimum number of inversions among all contiguous subarrays of length k.
Constraints:
n nums.length
nums[i]
k n