Top 10 Interview Questions on Depth First Search (DFS) Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some arbitrary node as the root in the case of a graph) and explores as far as possible along each branch before backtracking. Here are some important DFS problems asked in Technical Interviews: Find number of islandsTransitive closure of a graph using DFSApplication of DFSDetect cycle in an undirected graphLongest path between any pair of verticesFind a mother vertex in a graphIterative Depth first traversalPrint all path from a given source to a destinationStepping NumberMaximum product of two non- intersecting paths in a tree All articles on Depth First Search Unlock the Power of Placement Preparation!Feeling lost in OS, DBMS, CN, SQL, and DSA chaos? Our Complete Interview Preparation Course is the ultimate guide to conquer placements. Trusted by over 100,000+ geeks, this course is your roadmap to interview triumph.Ready to dive in? Explore our Free Demo Content and join our Complete Interview Preparation course. Last Updated : 20 Nov, 2020 Like Article Save Article Previous Check whether the cost of going from any node to any other node via all possible paths is same Next Zoho Interview Experience | Set 21 (On-Campus) Share your thoughts in the comments Add Your Comment Please Login to comment...