Skip to content

Commit f406395

Browse files
fix build
1 parent 94c440f commit f406395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_1266.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public static class Solution1 {
3434
/**
3535
* Time: O(n)
3636
* Space: O(1)
37-
*
37+
*
3838
* credit: https://leetcode.com/problems/minimum-time-visiting-all-points/discuss/436142/Sum-of-Chebyshev-distance-between-two-consecutive-points
3939
* */
4040
public int minTimeToVisitAllPoints(int[][] points) {
4141
int minTime = 0;
4242
for (int i = 0; i < points.length - 1; i++) {
43-
minTime += chebyshevDistance(points[i], points[i+1]);
43+
minTime += chebyshevDistance(points[i], points[i + 1]);
4444
}
4545
return minTime;
4646
}

0 commit comments

Comments
 (0)