← Amazon questions

Package Installation Sequence via Topological Sort

Filed under Amazon

Given a total number of courses/packages numCourses and a list of prerequisite pairs, return the ordering of courses you should take to finish all courses.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.