You are given an integer array nums and a queries, where each queries[i] is of the form
For each query, consider the subarray nums[]. The minimum absolute difference of this subarray is defined as the minimum absolute difference between any two elements in the subarray that have different values. If all elements in the subarray are identical, the minimum absolute difference is defined as
Return an array containing the answers to all queries in the given order.
Constraints:
nums.length
nums[i]
queries.length
nums.length
You are given an integer array nums and a queries, where each queries[i] is of the form
For each query, consider the subarray nums[]. The minimum absolute difference of this subarray is defined as the minimum absolute difference between any two elements in the subarray that have different values. If all elements in the subarray are identical, the minimum absolute difference is defined as
Return an array containing the answers to all queries in the given order.
Constraints:
nums.length
nums[i]
queries.length
nums.length