Topological Sort - All Paths From Source to Target (DAG)
You are given a directed acyclic graph (DAG) represented as an adjacency list. The task is to find all possible paths from the source node (0) to the target node (n-1). Which algorithmic approach guarantees finding all such paths efficiently without missing any, considering the graph's acyclic nature?
