DSA_Code icon indicating copy to clipboard operation
DSA_Code copied to clipboard

[REQUEST] Add DFS Traversal in Java

Open Subhooo5 opened this issue 1 year ago • 1 comments

Algorithm Name

Depth First Search

Programming Language

Java

Category

Graph Algorithms

Difficulty Level

Easy (Beginner friendly)

Algorithm Description

DFS is widely used in a variety of computer science and real-world applications, including:

🔍 Pathfinding and Search Problems – such as finding connected components or paths in a graph.

🧠 Topological Sorting – for scheduling and dependency resolution.

🔄 Cycle Detection – to check if a graph contains cycles (in directed or undirected graphs).

🌐 Maze Solving & Game AI – for exploring possible moves or routes.

🌳 Tree Traversals – acts as a base for preorder, inorder, and postorder traversals in trees.

References (Optional)

No response

Contribution Intent

  • [x] I would like to implement this algorithm myself
  • [ ] I'm requesting this for someone else to implement
  • [ ] I need help implementing this algorithm

Code of Conduct

  • [x] #656

Subhooo5 avatar Oct 24 '25 12:10 Subhooo5

@Pradeepsingh61 f this issue is not resolved can u please assign this issue to me and add hacktoberfest2025 label too

Nitin-0017 avatar Oct 30 '25 05:10 Nitin-0017