(Translated by https://www.hiragana.jp/)
Topological sort | Practice | GeeksforGeeks