Page 1 of 1

What will be the time complexity of the iterative depth first traversal code(V=no. of vertices E=no.of edges)?

Posted: Wed Jul 13, 2022 6:16 pm
by answerhappygod
a) O(V+E)
b) O(V)
c) O(E)
d) O(V*E)