Delete largest and farthest directory in file system
Filed under AppDynamics
The question
Given a tree-structured file system, delete the directory that occupies the most space and is farthest from the root.
No write-up yet. Related questions below have one.
Related AppDynamics questions
Collected from public candidate posts and coding forums. Updated Nov 2026.