LeetCode1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit——单调队列
文章目录一、题目二、题解一、题目Givenanarrayofintegersnumsandanintegerlimit,returnthesizeofthelongestnon-emptysubarraysuchthattheabsolutedifferencebetweenanytwoelementsofthissubarrayislessthanorequaltolimit.Example1