All challenges
Multiple ChoiceHard 30s

Floyd-Warshall Algorithm

Floyd-Warshall computes:
Options
  1. 1Single-source shortest path in O(V+E)
  2. 2All-pairs shortest paths in O(V³)
  3. 3Minimum spanning tree in O(E log V)
  4. 4Maximum network flow in O(V²·E)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle