Question: If a graph has V vertices and E edges, what is the space complexity of Dijkstra\'s algorithm?
Options:
Correct Answer: O(V + E)
Solution:
The space complexity of Dijkstra\'s algorithm is O(V + E) due to the storage of the graph\'s adjacency list and the distance array.