Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6a7653

Browse files
update 1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.java
1 parent 0bdad0b commit b6a7653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public int findTheCity(int n, int[][] edges, int distanceThreshold) {
160160

161161
// Initialize dp
162162
for (int i = 0; i < n; i++) {
163-
Arrays.fill(dp[i], 10001);
163+
Arrays.fill(dp[i], Integer.MAX_VALUE);
164164
dp[i][i] = 0;
165165
}
166166

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /