All Paths From Source to Target
Given a directed acyclic graph represented as an adjacency list, find all possible paths from node 0 (source) to node n-1 (target). Return all paths as a list of lists.
Given a directed acyclic graph represented as an adjacency list, find all possible paths from node 0 (source) to node n-1 (target). Return all paths as a list of lists.