Course Schedule
Medium📝 Description
Check if you can finish all courses given prerequisites
Input Format
Number of courses and list of prerequisites
Output Format
true/false
Constraints
1 ≤ numCourses ≤ 2000
🔍 Sample Input
2
[[1,0]]
✅ Sample Output
true
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run