Order the Courses

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

You must take a set of courses, and some courses must be taken before others. Produce an order in which you can take them all, or report that it's impossible. Explain the algorithm and how it detects the impossible case.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →