Graph | Question 4

Last Updated :
Discuss
Comments

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)

Tags:
Share your thoughts in the comments