💻
Algorithm
Ctrlk
  • README
  • Array
  • Binary Tree
  • Company
  • Cpp
  • Data Structure
  • Dynamic Programming
  • Graph
    • Minimum Spanning Tree
    • Shortest Path
    • Bi Directional Breadth First Search
    • Bipartite
    • Breadth First Search
    • Component Coloring
    • Component Count
    • Depth First Search
    • Eulerian Path
    • Maximum Bipartite Matching
    • Tarjan
    • Topological Sort
    • Tree Diameter
    • Tree Ring Order Traversal
  • Greedy
  • Math
  • Miscellaneous
  • Sort
  • Stl
  • String
  • Backtracking
  • Binary Answer
  • Binary Lifting
  • Binary Search
  • Bit Manipulation
  • Date
  • Difference Array
  • Discretization
  • Divide And Conquer
  • Gray Code
  • Great Problems For Practice
  • Interval Scheduling Maximization
  • Io Optimization
  • K Subset Partitioning
  • Line Sweep
  • Longest Common Subsequence
  • Longest Increasing Subsequence
  • Meet In The Middle
  • Minmax
  • Mono Deque
  • Monotonic Stack
  • Offline Query
  • P And Np
  • Prefix State Map
  • Prefix Sum
  • Random
  • Reservoir Sampling
  • Reverse Polish Notation
  • Sqrt Decomposition
Powered by GitBook
On this page

Was this helpful?

  1. Graph

Depth First Search

Note that if a graph is acyclic, we don't need to keep a set of visited nodes to prevent going into a loop.

Example: 797. All Paths From Source to Target (Medium)

Problems

  • 17. Letter Combinations of a Phone Number (Medium)

  • 39. Combination Sum (Medium)

  • 40. Combination Sum II (Medium)

  • 77. Combinations (Medium)

  • 212. Word Search II (Hard)

  • 216. Combination Sum III (Medium)

  • 797. All Paths From Source to Target (Medium)

  • 1219. Path with Maximum Gold (Medium)

  • 1601. Maximum Number of Achievable Transfer Requests (Hard)

PreviousComponent CountNextEulerian Path

Last updated 3 years ago

Was this helpful?