Question

What is the time complexity of the Floyd-Warshall algorithm for a graph with V vertices?

A O(V)
B O(V log V)
C O(V²)
D O(V³)
E O(E log V)
Practice Next

Hey! Ask a query