← Questions

Build reporting trees from employee-manager pairs

0
SnowflakeCodingLast asked Sep 2026

A coding interview question asked in Snowflake's coding round, last asked Sep 2026. It tests trees, hash maps and graphs.

You get a list of reporting relationships. Each person is a positive integer id, and a pair [employee, manager] means the employee reports directly to that manager.

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

  • Snowflake · Coding · Last asked Sep 202660 min · Live coding; senior loops may agree a small storage component together, then build it

What it tests

trees · hash maps · graphs

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