Skip to content

Commit 18a8572

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 409e3f2 commit 18a8572

File tree

1 file changed

+2
-2
lines changed
  • solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

1 file changed

+2
-2
lines changed

solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ public:
12711271
deque<int> min_q;
12721272
int n = nums.size();
12731273
int l = 0;
1274-
1274+
12751275
for (int r = 0; r < n; ++r) {
12761276
while (!max_q.empty() && nums[max_q.back()] < nums[r]) {
12771277
max_q.pop_back();
@@ -1281,7 +1281,7 @@ public:
12811281
}
12821282
max_q.push_back(r);
12831283
min_q.push_back(r);
1284-
1284+
12851285
if (nums[max_q.front()] - nums[min_q.front()] > limit) {
12861286
++l;
12871287
if (max_q.front() < l) {

0 commit comments

Comments
 (0)