Given two integers n and k, return the number of distinct arrays consisting of integers from n that contain exactly k inverse pairs. Since the answer can be very large, return it modulo
An inverse pair in an array nums is defined as a pair of indices nums.length and nums[i] nums[j].
Constraints:
n
k
Given two integers n and k, return the number of distinct arrays consisting of integers from n that contain exactly k inverse pairs. Since the answer can be very large, return it modulo
An inverse pair in an array nums is defined as a pair of indices nums.length and nums[i] nums[j].
Constraints:
n
k