PinterestCodingMembers
Tree-Encoded Subtree Deletion and Stable Compaction
Members only
A recurring Pinterest phone-screen problem uses a compact array representation of a forest and then changes that representation after a deletion. The traversal is approachable; preserving structural consistency through the follow-up is the higher-signal part of the round.
SWE
array
tree
dfs
hashmap
medium
Frequency
Medium
Last asked
2026-10-21
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
