Question

In a graph represented using an adjacency matrix with V vertices, what is the space complexity?

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

Hey! Ask a query