Graph TheoryMediumGraph Algorithms
Graph Algorithms · Medium problem
A project has tasks with prerequisites (one chain) and (a separate chain, with no prerequisite link at all between the two chains). How many different valid orders are there to complete all five tasks?