Skip to content

Conversation

@Hardvan
Copy link
Contributor

@Hardvan Hardvan commented Oct 7, 2024

This C++ implementation of DFS and BFS traverses an undirected graph using adjacency lists. The time complexity for both DFS and BFS is (O(V + E)), where (V) is the number of vertices and (E) is the number of edges. The space complexity is (O(V)) due to storing the vertices and visited states.

@kelvins kelvins merged commit 6e41059 into kelvins:main Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants