← Questions

Group dependent tasks into parallel levels

0
NetflixSnowflakeGoogle+2CodingLast asked Sep 2026

A coding interview question asked in Google's onsite coding round and at Meta, Snowflake and 2 more companies, last asked Sep 2026. It tests graphs, topological sort and bfs.

You run a build system. Each task has a unique, non-empty lowercase name.

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

  • Google · Onsite coding · Last asked Sep 202645 min · Usually two rounds, mostly in person: whiteboard plus a Chromebook with Google Docs · No AI (a pilot code-comprehension round lets candidates use Gemini)
  • Meta · AI-enabled coding · Last asked Aug 202660 min · Several progressive tasks on a starter codebase in CoderPad with an AI assistant panel; usually two rounds · The first task usually without AI, later tasks with it
  • Snowflake · Coding · Last asked Aug 202660 min · Live coding; senior loops may agree a small storage component together, then build it
  • Netflix · Coding / problem solving · Last asked Jun 2026Live coding on under-specified requirements
  • Uber · Coding · Last asked Dec 202560 min · Two rounds; one is often object-oriented design (a parking lot, a meeting scheduler, an expression evaluator) · No AI, except a newer AI-assisted debugging round in some senior loops

What it tests

graphs · topological sort · bfs

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