Gas Station Loop

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

Petrol stations stand around a circular road. Each gives a certain amount of fuel, and driving to the next one costs a certain amount. Find a station you could start from with an empty tank and drive all the way round, or say it's impossible.

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 →