Target Course Completion Plan

You are given numCourses courses labeled from 0 to numCourses - 1. Each pair [course, prerequisite] in prerequisites means that prerequisite must be completed before taking course.

Give...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: