Categorygithub.com/szhou12/leetcode-goleetcode1334-Find-the-City-With-the-Smallest-Number-of-Neighbors-at-a-Threshold-Distance
package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev
# README
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
Solution idea
Floyd-Warshall Algorithm
Time complexity = $O(E \times n^2)$
Resource
【每日一题】LeetCode 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance