Problemhttps://leetcode.com/problems/all-paths-from-source-to-target/description/ Sol0부터 n-1번 노드까지 갈 수 있는 모든 경로를 알려주는 문제(Source ➡️ Target)✔ Answer[DFS] 모든 경로를 탐색해야하기 때문에 stack과 회귀를 사용하는 DFS 방식으로 문제를 해결했습니다. class Solution: def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]: def dfs(node, path): # 목표 노드(n-1)도착하면 경로를 결과 리스트에 추가 if node == len(graph) - 1: result.append(path) ..