Print employee database hierarchy starting with CEO
Filed under ADP
The question
Given a database of employees with employee ID, name, and parent ID, write a program to print the database in a hierarchical structure starting from the CEO.
No write-up yet. Related questions below have one.
Related ADP questions
Collected from public candidate posts and coding forums. Updated Nov 2026.