Data Structures, Algorithms, Leetcode, Segment Tree, Programming.
queries[2] = [2,3]: The subarray is [4,8] and the minimum absolute difference is |4-8| = 4. - queries[3] = [0,3]: The subarray is [1,3,4,8] and the minimum absolute difference is |3-4| = 1. Constraints: 2 <= nums.length <= 10⁵ 1 <= nums[i] <= 100 1 <= queries.length <= 2 * 10⁴ 0 <= li < ri <