Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

Given an integer array nums and an integer limit, return the length of the longest non-empty contiguous subarray such that the absolute difference between any two elements in that subarray is less than or equal to limit.

Check more interview questions and experiences about Uber

Please log in to view interview question details