FlexportCodingMembers
Print Org Tree
Members only
A tree-traversal coding question on printing a company org chart. The wrinkle is that the traversal order the interviewer names is not well defined for a tree with many children per node, so part of the task is pinning down a sensible definition and keeping the code robust to the input shape.
SWE
tree
tree-traversal
dfs
recursion
medium
Frequency
Single report
Last asked
—
Stage
onsite-coding
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 6 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
