PRACTICE

Depth-First Search Interview Questions

27 Depth-First Search problems asked across FAANG and top tech companies. Approach hints, optimal solutions, and related problems.

🔒

to save your progress.

0ProblemDifficultyCompaniesBreakdown / SolutionLeetCode
All Paths From Source to TargetMedium1 companiesView breakdown →
Amount of Time for Binary Tree to Be InfectedMedium1 companiesView breakdown →
Binary Tree Inorder TraversalEasy1 companiesView breakdown →
Binary Tree Preorder TraversalEasy1 companiesView breakdown →
Binary Tree Vertical Order TraversalMedium1 companiesView breakdown →
Count Pairs of Connectable Servers in a Weighted Tree NetworkMedium1 companiesView breakdown →
Count Paths That Can Form a Palindrome in a TreeHard1 companiesView breakdown →
Distance to a Cycle in Undirected GraphHard1 companiesView breakdown →
House Robber IIIMEDIUM1 companiesView breakdown →
Is Graph Bipartite?MEDIUM1 companiesView breakdown →
Find Eventual Safe StatesMEDIUM1 companiesView breakdown →
Network Delay TimeMEDIUM1 companiesView breakdown →
Number of ProvincesMEDIUM1 companiesView breakdown →
Making A Large IslandHARD1 companiesView breakdown →
Maximize Amount After Two Days of ConversionsMEDIUM1 companiesView breakdown →
Maximize Sum of Weights after Edge RemovalsHARD1 companiesView breakdown →
Sentence Similarity IIMEDIUM1 companiesView breakdown →
Last Day Where You Can Still CrossHARD1 companiesView breakdown →
Lowest Common Ancestor of a Binary Tree IIMEDIUM1 companiesView breakdown →
Lowest Common Ancestor of a Binary Tree IVMEDIUM1 companiesView breakdown →
Reconstruct ItineraryHARD1 companiesView breakdown →
Serialize and Deserialize N-ary TreeHard1 companiesView breakdown →
Step-By-Step Directions From a Binary Tree Node to AnotherMedium1 companiesView breakdown →
Vertical Order Traversal of a Binary TreeHARD1 companiesView breakdown →
Web CrawlerMEDIUM1 companiesView breakdown →
Design Add and Search Words Data StructureMedium4 companiesView breakdown →
Populating Next Right Pointers in Each NodeMedium5 companiesView breakdown →

Practice with a Mock Interview

Solve these Depth-First Search problems under real interview pressure with our AI interviewer.

Start Mock Interview →