← Questions

Limit tree height by deleting nodes

0
SnowflakeCodingLast asked Oct 2026

A coding interview question asked in Snowflake's coding round, last asked Oct 2026. It tests trees, dfs and dynamic programming.

You are given a rooted N-ary tree. Every node has a unique integer id.

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 Oct 202660 min · Live coding; senior loops may agree a small storage component together, then build it

What it tests

trees · dfs · dynamic programming

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