Halloween Sale
Unlock all premium questions for over 30% off
Limit Tree Height with Deletions
Medium
Question
You work with an N-ary tree: every node has an integer id and an ordered list of children. Nodes can be deleted. Deleting a node removes only that node. Its children are promoted: each one takes the deleted node's place under that node's parent, so nothing below it is lost. Splicing an element out of a linked list works the same way. ...
Asked at:Snowflake
More Snowflake interview questions
- Grep Command With Context Linesmedium
- All Subsetsmedium
- [OA] Bounded Transition Subsequencehard
- Inherited Access Rightshard
- Longest Prefix Routermedium
- Product Sales Rankermedium
- Resizable LRU Cachemedium
- Tagged Value Storemedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.