문제 https://leetcode.com/problems/all-paths-from-source-to-target/ All Paths From Source to Target - LeetCode Can you solve this real interview question? All Paths From Source to Target - Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1 and return them in any order. The graph is given as fol leetcode.com - 시작점부터 종점까지 이어지는 가..
문제 https://leetcode.com/problems/find-center-of-star-graph/ Find Center of Star Graph - LeetCode Can you solve this real interview question? Find Center of Star Graph - There is an undirected star graph consisting of n nodes labeled from 1 to n. A star graph is a graph where there is one center node and exactly n - 1 edges that connect the center node leetcode.com 접근방법 1. [단순 접근 방법] 주어진 인접리스트에서 ..