NeetCode #578LC-1462MediumGraphsNC 250
← Back to All Problems#578 · #1462 · Course Schedule IV(课程表 IV)
📌 Problem Statement & Constraints
There are
numCourses courses. Given prerequisites and queries where queries[i] = [a, b], return a boolean array where the i-th entry says whether a is a prerequisite of b. Constraints: 2 <= numCourses <= 100, 0 <= prerequisites.length <= numCourses * (numCourses - 1) / 2, 1 <= queries.length <= 10^4.🔒
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!