Given an integer array nums and an integer limit, return the size of the longest non-empty subarray such that the absolute difference between any two elements within that subarray is less than or equal to limit.
Constraints:
nums.length
nums[i]
limit
Given an integer array nums and an integer limit, return the size of the longest non-empty subarray such that the absolute difference between any two elements within that subarray is less than or equal to limit.
Constraints:
nums.length
nums[i]
limit