SnowflakeCoding·60 minMembers
Forest Parent Array Delete Node
Members only
Given a forest encoded as an array where `parent[i]` stores node `i`'s parent index and each root has `parent[i] == i`, delete a specified node and return a new parent-index array that still satisfies...
SWE
tree
array
hashmap
medium
Frequency
Single report
Last asked
2026-06-24
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
