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)arrow-up-right
17. Letter Combinations of a Phone Number (Medium)arrow-up-right
39. Combination Sum (Medium)arrow-up-right
40. Combination Sum II (Medium)arrow-up-right
77. Combinations (Medium)arrow-up-right
212. Word Search II (Hard)arrow-up-right
216. Combination Sum III (Medium)arrow-up-right
797. All Paths From Source to Target (Medium)arrow-up-right
1219. Path with Maximum Gold (Medium)arrow-up-right
1601. Maximum Number of Achievable Transfer Requests (Hard)arrow-up-right
Last updated 4 years ago