Skip to content

Commit 7375d7c

Browse files
authored
Fixed Formatting 1921-eliminate-maximum-number-of-monsters.js
1 parent 46773b8 commit 7375d7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/1921-eliminate-maximum-number-of-monsters.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ var eliminateMaximum = function(dist, speed) {
1212
});
1313

1414
let monsterSlyed = 1;
15-
time.sort((a,b) => a-b);
16-
for(let i = 1; i < time.length; i++) {
17-
if(time[i] <= monsterSlyed) return monsterSlyed;
15+
time.sort((a, b) => a - b);
16+
for (let i = 1; i < time.length; i++) {
17+
if (time[i] <= monsterSlyed) return monsterSlyed;
1818
monsterSlyed++;
1919
}
2020

0 commit comments

Comments
 (0)