Graph Theory37 sections · 1633 units
Open in Course

Practice Problems

(Build your skills)

Build your Floyd-Warshall skills with these problems:

1.1. Shortest Routes II (CSES): all-pairs queries, direct Floyd-Warshall application.

2.2. Find the City (LeetCode 13341334): threshold-based counting, post-processing the distance matrix.

3.3. Course Schedule IV (LeetCode 14621462): transitive closure variant using boolean Floyd-Warshall.

Each problem reinforces a different aspect. CSES tests basic usage, LeetCode 13341334 tests filtering results, and LeetCode 14621462 tests the reachability variant.