← Questions

Course schedule: finish every course and find an order

0
AmazonNuroApplied IntuitionCodingLast asked Nov 2026

A coding interview question asked in Amazon's technical phone screen and at Applied Intuition and Nuro, last asked Nov 2026. It tests graphs, topological sort and cycle detection.

You have n courses, numbered 0 to n - 1, and a list of prerequisite pairs [a, b] meaning course b must be taken before course a. First decide whether every course can be finished; this fails exactly when the prerequisites contain a cycle.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Technical phone screen · Last asked Nov 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI
  • Applied Intuition · AI-assisted build · Last asked Sep 2026120 min · Build the designed system, or a small web app, in a prepared environment over two to three hours · Claude Code or a provided Claude model expected
  • Nuro · Technical phone screen · Last asked Sep 2026

What it tests

graphs · topological sort · cycle detection

Your code and the AI tutor open when you unlock this question.