</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Snapchat Questions

Org Chart Builder

Medium

A company has a list of employees. Each entry has three strings: [id, manager_id, name]. The CEO is the only employee whose manager_id equals their own id. All other employees report to exactly one manager.

Generate an org chart as a hierarchical text string. Each employee's name appears on its own line, followed by a newline character '\n'. The last employee has no trailing newline. Each level of the hierarchy adds four dashes '----' of indentation relative to the manager's level. ...

Asked at:Snapchat

More Snapchat interview questions

All Snapchat interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.