Medium-EasyUnderstandGraphsMultiple Choice

What is the space complexity of storing a graph as an adjacency matrix vs adjacency list?

Understand Tests comprehension and ability to explain concepts.

Answer Options

AMatrix O(V+E), List O(V²)
BMatrix O(V²), List O(V+E)
CBoth O(V²)
DBoth O(V+E)

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 33+ more Graphs questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Graphs topic (Algorithms).

More Graphs Questions