Find whether it is possible to finish all tasks from given dependencies

1 min read

https://www.geeksforgeeks.org/find-whether-it-is-possible-to-finish-all-tasks-or-not-from-given-dependencies/

Minimum time taken by each job to be completed given by a directed acyclic graph
Find the number of islands