Source note: This problem is backed by a real Amazon onsite interview report. The report named Course Schedule and discussed graph modeling, topological sorting, and cycle detection, but it did not say whether the requested result was feasibility or an ordering and did not include a function interface, examples, or constraints. This judged version uses the feasibility form, so the core task match is about 85%.
The problem statement continues
ProExamples
01 · Example 1
numCourses = 2 prerequisites = [[1,0]] return = true
Original screenshot from the interview report
ProFastPrep Pro
Reported in 1 Amazon interview this weekUnlock the full problem
- Full problem statement and constraints
- 1 more worked example, explained
- Guided hints and editorial
- Run your code on real test cases
$9/month
Pro subscription, billed yearly — or $19 month-to-month. Cancel anytime.
Free plan — 2 of 2 free unlocks used this week
CodePython 3
Run and Submit unlock with Pro
FastPrep Pro
Reported in 1 Amazon interview this weekUnlock the full problem
- Full problem statement and constraints
- 1 more worked example, explained
- Guided hints and editorial
- Run your code on real test cases
$9/month
Pro subscription, billed yearly — or $19 month-to-month. Cancel anytime.
Free plan — 2 of 2 free unlocks used this week