Skip to content

Commit 3827553

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 897ab9d commit 3827553

File tree

1 file changed

+5
-5
lines changed
  • lcof/面试题51. 数组中的逆序对

1 file changed

+5
-5
lines changed

lcof/面试题51. 数组中的逆序对/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class Solution {
335335
var i = left
336336
var j = mid + 1
337337
var k = left
338-
338+
339339
while i <= mid && j <= right {
340340
if nums[i] <= nums[j] {
341341
temp[k] = nums[i]
@@ -347,23 +347,23 @@ class Solution {
347347
}
348348
k += 1
349349
}
350-
350+
351351
while i <= mid {
352352
temp[k] = nums[i]
353353
i += 1
354354
k += 1
355355
}
356-
356+
357357
while j <= right {
358358
temp[k] = nums[j]
359359
j += 1
360360
k += 1
361361
}
362-
362+
363363
for i in left...right {
364364
nums[i] = temp[i]
365365
}
366-
366+
367367
return count
368368
}
369369
}

0 commit comments

Comments
 (0)