DFS Problems
Depth-first search explores as far as possible along each branch before backtracking. These problems use DFS on trees, graphs, and matrices — from simple traversals to complex path-finding and cycle detection.
52 problems
Browse by Topic
ArrayBFSBacktrackingBinary SearchBinary Search TreeBinary TreeBit ManipulationBitmaskBoyer-Moore VotingCombinatoricsDFSDesignDivide and ConquerDynamic ProgrammingGeometryGraphGreedyHash TableHeapInorder TraversalInterval DPIteratorLinked ListMathMatrixMemoizationMerge SortMinimum Spanning TreeMonotonic QueueMonotonic StackPermutation CyclesPostorder TraversalPrefix SumQueueRadix SortRecursionShortest PathSimulationSliding WindowSortingSorting&SearchingStackStack&QueueStringString MatchingStrongly Connected ComponentsTopological SortTreeTrieTriesTwo PointersUnion Find