← Questions

Count and map a cluster tree with message passing

0
OpenAISnowflakeCodingLast asked Sep 2026

A coding interview question asked in OpenAI's agentic coding (beta) round and at Snowflake, last asked Sep 2026. It tests trees, distributed systems and message passing.

A cluster of n machines is wired as a rooted tree (any number of children per node). Each machine knows only three things: its own id (a string such as "4"), its parent's id ("-1" for the root, which stands for the external client), and…

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 Sep 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
  • Snowflake · System design · Last asked Jun 202660 min · Design discussion

What it tests

trees · distributed systems · message passing · concurrency

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