NeetCode #576LC-210MediumGraphsNC 150NC 250
← Back to All Problems#576 · #210 · Course Schedule II(课程表 II)
📌 Problem Statement & Constraints
There are
numCourses courses and prerequisites[i] = [a, b] means b before a. Return a valid order to finish all courses, or an empty array if impossible. Constraints: 1 <= numCourses <= 2000, 0 <= prerequisites.length <= numCourses * (numCourses - 1).🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!