Skip to content

Commit 91c728a

Browse files
authored
Fixed spacing
1 parent 258d865 commit 91c728a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/1846-maximum-element-after-decreasing-and-rearranging.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var maximumElementAfterDecrementingAndRearranging = function(arr) {
1414

1515
while (index < arr.length) {
1616

17-
const pre = arr[index-1];
17+
const pre = arr[index - 1];
1818
const curr = arr[index];
1919
if (Math.abs(curr - pre) > 1 && pre + 1 < curr) {
2020
arr[index] = pre + 1;

0 commit comments

Comments
 (0)