What is the time complexity of DFS traversal of a graph represented as adjacency list. The graph has V vertices and E edges.
O(V + E)
O(V)
O(E)
O(V*E)
This question is part of this quiz :