Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 361 Bytes

File metadata and controls

20 lines (13 loc) · 361 Bytes

-go back

Code challenge: 38

Challenge Title

Deph First Search

Whiteboard Process

alt text

Approach & Efficiency

create a function that returns the DFS of the graph

Solution

after defining the initial code:

depth_first_graph:

the Time Complexity is = O(N+m)
the Space Complexity is = O(N)