We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c440f commit f406395Copy full SHA for f406395
src/main/java/com/fishercoder/solutions/_1266.java
@@ -34,13 +34,13 @@ public static class Solution1 {
34
/**
35
* Time: O(n)
36
* Space: O(1)
37
- *
+ *
38
* credit: https://leetcode.com/problems/minimum-time-visiting-all-points/discuss/436142/Sum-of-Chebyshev-distance-between-two-consecutive-points
39
* */
40
public int minTimeToVisitAllPoints(int[][] points) {
41
int minTime = 0;
42
for (int i = 0; i < points.length - 1; i++) {
43
- minTime += chebyshevDistance(points[i], points[i+1]);
+ minTime += chebyshevDistance(points[i], points[i + 1]);
44
}
45
return minTime;
46
0 commit comments