← Questions

Count ordered routes that visit one shop of each of four types

0
OpenAICodingLast asked Oct 2026

A coding interview question asked in OpenAI's agentic coding (beta) round, last asked Oct 2026. It tests graphs, counting and combinatorics.

You need four things from four kinds of shop: a bookshop (kind 0), a school-supply shop (1), a sports store (2) and a stationery store (3). The town has many shops of each kind, joined by two-way roads.

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

  • OpenAI · Agentic coding (beta) · Last asked Oct 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected

What it tests

graphs · counting · combinatorics

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