TikTok | Software Engineer (Senior) | Coding | Phone Screen
Interview Date:June 17, 2026Region:NA (North America)Hiring Team/Org:Ads
Given a flat array of objects (representing nodes in a graph), where each node contains: A unique identity (id) A reference to its parent (parent id) A text label (txt) The goal is to reconstruct the hierarchical tree structure from these flat relationships and format every root tree into a single, nested string representation where child nodes are encapsulated inside their parent's parentheses, like so: Parent(Child...
Sign in to view the full interview experience
Create or use your InterviewDB account to read the full Warren post and all shared details.
Sign in to continue0