TheFenrisLycaon / DSA-C--

DSA Codes for beginners.
21 stars 65 forks source link

Added Depth First Search Algorithm #10

Closed iMohitPant closed 3 years ago

iMohitPant commented 3 years ago

Added Depth First Search Algorithm code written in CPP. Time complexity: O(V + E), where V is the number of vertices and E is the number of edges in the graph. Space Complexity: O(V). Since an extra visited array is needed of size V.

TheFenrisLycaon commented 3 years ago

Please add a reference to the issue you created. Your code seems okay. :)

iMohitPant commented 3 years ago

reference to issue #9