TikTok | Software Engineer (Senior) | Coding | Phone Screen

rokkurokku·
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 continue
0

Discussion

0

Log in to post a comment or vote.

Sort by
Loading comments...

Interview Resources

InterviewDB

About InterviewDB

Crowdsourced Interview Question Bank for Job Seekers in Tech/Finance Industry

Copyright © 2026 InterviewDB. Victory is reserved for those who are willing to pay its price.