Back to Browse

How to Use Depth First Traversal with Graphs in Coding Interviews

5.2K views
Apr 8, 2021
47:33

In our previous videos of our Graph series we covered breadth first traversals, how to implement a graph and various strategies for graph interview questions. In this video we explore another strategy to traverse a graph using depth first search (DFS). Here we will provide a conceptual breakdown of DFS, how to implement a DFS for graphs using javascript, dive into the Big O complexity analysis and walkthrough sample interview problems. 1:15 Overview 7:20 Code implementation 24:00 Big O Complexity Analysis 25:36 When to use DFS 29:17 Interview question walkthrough 46:42 Recap If you need a refresher on Graphs, check out our first video of this series here: https://youtu.be/e4RezPkq3UI

Download

1 formats

Video Formats

360pmp469.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to Use Depth First Traversal with Graphs in Coding Interviews | NatokHD