Skip to content

Implement DFS in C++Β #7

@HashSlap

Description

@HashSlap

πŸ”§ Implement: Depth-First Search (DFS) in C++

File path:

algo-and-data-structures/graphs/dfs.cpp

Requirements:

  • Implement DFS using recursion and adjacency list.
  • Print the order of traversal.

βœ… Test:

g++ dfs.cpp -o dfs && ./dfs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions