[LeetCode] 2192. All Ancestors of a Node in a Directed Acyclic Graph

You are given a positive integer n representing the number of nodes of a Directed Acyclic Graph (DAG). The nodes are numbered from 0 to n - 1 (inclusi
posted @ 2024-04-07 05:06  CNoodle  阅读(66)  评论(0编辑  收藏  举报