Posted inLeetcode [Leetcode Pattern] 拓樸排序 Topological sort 必須是一個有向無環圖 DAG,才能有拓樸排序 套用時機 事件前後有依賴關係判斷 graph 有無 Cycle 實… 2022-08-20Tags: topological sort