What is the time complexity of checking for a cycle in an undirected graph using the DFS algorithm?
O(V)
O(V + E)
O(log V)
O(E^2)

Information Technology and Computer Science Exercises are loading ...