← 返回 meta 的题目列表Course Schedule
类型:online_judge
You are given numCourses, and an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi before taking course ai. Determine if you can finish all courses.
Example
Input
2
[[1,0]]