realAlgoMonster / contrib

Contribute test cases for problems on AlgoMonster (https://algo.monster)
7 stars 8 forks source link

Course Schedule #109

Open kanzy12 opened 1 year ago

kanzy12 commented 1 year ago

https://algo.monster/problems/course_schedule

The current test cases do not have a case where there is a course with no prerequisites. Therefore, all the test cases can be passed just by checking if there is a course without a prerequisite, without having to do DFS cycle detection or topological sort.

New test case: 4 4 1 0 1 3 2 1 3 2