Back to problems

Target Course Completion Plan

Algorithm · Snowflake · Medium

Target Course Sequence Medium · Topics · Company Tags · Hints There are N courses offered, each labeled with an integer from 0 to N-1. A list of prerequisite relationships is given; each pair (course, prerequisite) means that the second course must be successfully completed before the first course can be taken. You are also given a specific target course T. Produce a valid ordering that lists all and only the courses that are required to finish T. The sequence must include T…

Checking your access…