207. Course Schedule

수강해야 하는 총 numCourses 과정이 있으며 0에서 numCourses - 1까지 레이블이 지정 This problem is equivalent to finding the topological order in a directed graph. If a cycle exists, no topological ordering exists and therefore it will be impossible to take all courses.

Continue reading

Pagination


© 2017. by yeopoong.github.io

Powered by yeopoong