Open maxhwardg opened 8 years ago
I would suggest Kahn's algorithm. It's adaptable to hard questions. Eg lexicographically least Topo sort, and can easily check if there is none.
I would suggest Kahn's algorithm. It's adaptable to hard questions. Eg lexicographically least Topo sort, and can easily check if there is none.