Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
CodingPhone, OnsiteSoftware EngineerReported May, 2026Medium Frequency
Company question banks are included with the Insider plan.
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...