Question: What is the time complexity of BFS in a graph with V vertices and E edges?
Options:
Correct Answer: O(V + E)
Solution:
The time complexity of BFS is O(V + E), where V is the number of vertices and E is the number of edges in the graph.