Skip to content

Commit 9ad9e79

Browse files
authoredOct 18, 2024
Fix spacing issue.
1 parent 6697cab commit 9ad9e79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎javascript/1642-furthest-building-you-can-reach.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
var furthestBuilding = function(heights, bricks, ladders) {
1111

1212
const maxPriorityQueue = new MaxPriorityQueue({
13-
compare: (a,b) => {
14-
return b-a;
13+
compare: (a, b) => {
14+
return b - a;
1515
}
1616
});
1717

1818
let i = 0;
1919

2020
while (i < heights.length - 1) {
21-
const diff = heights[i+1] - heights[i];
21+
const diff = heights[i + 1] - heights[i];
2222

2323
if (diff <= 0) {
2424
i++;

0 commit comments

Comments
 (0)